Css Tab, csstab Tab
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> css-tab switch </title>
<Style>
<! --
*{
Margin: 0; padding: 0; list-style: none; font-size: 12px ;}
# Content {
Width: 300px; margin: 10px auto; position: relative; border: 1px solid #666 ;}
Ul {
Width: 20px; height: 100px; position: absolute; right: 5px; top: 100px ;}
Ul li {height: 33px ;}
Ul li {
Display: block; width: 20px; height: 20px; line-height: 20px; text-align: center; color: #000; background: # ccc; text-decoration: none ;}
Ul li a: hover {color: # fff; background: #666 ;}
# TabTxt {height: 300px; overflow: hidden ;}
# A1, # a2, # a3 {width: 300px; height: 300px ;}
-->
</Style>
</Head>
<Body>
<Div id = "content">
<Ul>
<Li> <a href = "# a1"> 1 </a> </li>
<Li> <a href = "# a2"> 2 </a> </li>
<Li> <a href = "# a3"> 3 </a> </li>
</Ul>
<Div id = "tabTxt">
<Div id = "a1" style = "background: # f00">
</Div>
<Div id = "a2" style = "background: #080">
</Div>
<Div id = "a3" style = "background: #009;">
</Div>
</Div>
</Div>
</Body>
</Html>