完全css-tab切換

來源:互聯網
上載者:User
<!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切換</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 a{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>

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.