dw 選項卡,dw

來源:互聯網
上載者:User

dw 選項卡,dw
選項卡實現代碼:

<!DOCTYPE html><!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>無標題文檔</title><style>#biaodan {height: 600px;width: 365px;padding-top: 100px;margin-top: 0px;margin-right: auto;margin-bottom: 0px;margin-left: auto;font: "微軟雅黑" 14px/30px;}body {margin: 0px;padding: 0px;}#shang{height: 30;text-align: center;border-Top: 3px solid #060;line-height: 30px;vertical-align: middle;}#xia {height: 500px;}#junshi ul ,#zhengzhi ul,#wenhua ul{list-style-type: none;}a:link,a:visited,a:hover{text-decoration:none;}#zhengzhi,#wenhua{display:none;}#biaodan #sp-junshi{width: 120px;height: 29px;border-left: 1px solid #666;border-right: 1px solid #666;float: left;border-bottom: none;background-color:none;}#biaodan #sp-zhengzhi{width: 120px;height: 29px;border-right: 1px solid #666;border-bottom: 1px solid #666;background-color: #cfcfcf;float: left;}#biaodan #sp-wenhua{width: 120px;height: 29px;border-right: 1px solid #666;border-bottom: 1px solid #666;background-color: #cfcfcf;float: left;}body {margin: 0px;padding: 0px;}</style><script>function xianshijunshi(){//軍事顯示document.getElementById("junshi").style.display = "block";//政治隱藏document.getElementById("zhengzhi").style.display = "none";//文化隱藏document.getElementById("wenhua").style.display = "none";document.getElementById("sp-junshi").style.background = "none"document.getElementById("sp-zhengzhi").style.background ="#cfcfcf";document.getElementById("sp-wenhua").style.background ="#cfcfcf";document.getElementById("sp-junshi").style.borderBottom = "none"; document.getElementById("sp-zhengzhi").style.borderBottom = "1px solid #666";document.getElementById("sp-wenhua").style.borderBottom = "1px solid #666";}function xianshizhengzhi(){//軍事隱藏document.getElementById("junshi").style.display = "none";//政治顯示document.getElementById("zhengzhi").style.display = "block";//文化隱藏document.getElementById("wenhua").style.display = "none";document.getElementById("sp-junshi").style.background = "#cfcfcf"document.getElementById("sp-zhengzhi").style.background ="none";document.getElementById("sp-wenhua").style.background ="#cfcfcf";document.getElementById("sp-junshi").style.borderBottom = "1px solid #666"; document.getElementById("sp-zhengzhi").style.borderBottom = "none";document.getElementById("sp-wenhua").style.borderBottom = "1px solid #666";}function xianshiwenhua(){//軍事隱藏document.getElementById("junshi").style.display = "none";//政治隱藏document.getElementById("zhengzhi").style.display = "none";//文化顯示document.getElementById("wenhua").style.display = "block";document.getElementById("sp-junshi").style.background = "#cfcfcf"document.getElementById("sp-zhengzhi").style.background ="#cfcfcf";document.getElementById("sp-wenhua").style.background ="none"document.getElementById("sp-junshi").style.borderBottom = "1px solid #666"; document.getElementById("sp-zhengzhi").style.borderBottom = "1px solid #666";document.getElementById("sp-wenhua").style.borderBottom = "none";}</script></head><body><div id="biaodan">  <div id="shang" >    <div id="sp-junshi" class="s1" onMouseover="xianshijunshi()">軍事</div>    <div id="sp-zhengzhi" class="s2" onMouseover="xianshizhengzhi()">政治</div>    <div id="sp-wenhua" class="s3" onMouseover="xianshiwenhua()">文化</div>    <div style="clear:both;"></div>  </div>  <div id="xia">    <div id="junshi" class ="info">      <ul>        <li><a href="#">軍事軍事軍事軍事軍事軍事軍事軍事</a></li>        <li><a href="#">軍事軍事軍事軍事軍事軍事軍事軍事</a></li>        <li><a href="#">軍事軍事軍事軍事軍事軍事軍事軍事</a></li>        <li><a href="#">軍事軍事軍事軍事軍事軍事軍事軍事</a></li>        <li><a href="#">軍事軍事軍事軍事軍事軍事軍事軍事</a></li>        <li><a href="#">軍事軍事軍事軍事軍事軍事軍事軍事</a></li>      </ul>    </div>    <div id="zhengzhi" class ="info">      <ul>        <li><a href="#">政治政治政治政治政治政治政治政治</a></li>        <li><a href="#">政治政治政治政治政治政治政治政治</a></li>        <li><a href="#">政治政治政治政治政治政治政治政治</a></li>        <li><a href="#">政治政治政治政治政治政治政治政治</a></li>        <li><a href="#">政治政治政治政治政治政治政治政治</a></li>        <li><a href="#">政治政治政治政治政治政治政治政治</a></li>      </ul>    </div>    <div id="wenhua" class ="info">      <ul>        <li><a href="#">文化文化文化文化文化文化文化文化</a></li>        <li><a href="#">文化文化文化文化文化文化文化文化</a></li>        <li><a href="#">文化文化文化文化文化文化文化文化</a></li>        <li><a href="#">文化文化文化文化文化文化文化文化</a></li>        <li><a href="#">文化文化文化文化文化文化文化文化</a></li>        <li><a href="#">文化文化文化文化文化文化文化文化</a></li>      </ul>    </div>  </div></div></body></html>


選項卡實現頁面


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.