ÓÖÒ»¿î¼æÈÝÐԺõÄTAB±êÇ©Ñ¡Ï(CSS+JS)
´úÂë¼ò½é£º
¼æÈÝIE7¡¢IE8¡¢FFµÈÖ÷Á÷ä¯ÀÀÆ÷µÄ¶à±êÇ©Ñ¡Ï£¬»ùÓÚCSS+JS¼¼ÊõʵÏÖ£¬¼ò½àƯÁÁ£¬Ç§Íò²»Òª´í¹ý£¬±¾Ñ¡ÏÊÇ´óÍøÕ¾°Çϵģ¬¶øÇҺöàÍøÕ¾¶¼ÓÐÓùý£¬¾ø¶ÔÖµµÃÊղصÄÒ»¿îµã´¥Ê½»¬¶¯ÃÅ¡£
´úÂëÄÚÈÝ£º
<!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> <title>ÓÖÒ»¿î¼æÈÝÐԺõÄTAB±êÇ©Ñ¡Ï(CSS+JS)_ÍøÒ³´úÂëÕ¾(www.webdm.cn)</title> <style type="text/css"> body{ font-family: arial; font-size: 12px; text-align: center; margin: 0; } .nTab{ float: left; width: 542px; margin: 0 auto; border-bottom:1px #C7C7CD solid; background:#d5d5d5; background-position:left; background-repeat:repeat-y; margin-bottom:2px; } .nTab .TabTitle{ clear: both; height: 26px; overflow: hidden; } .nTab .TabTitle ul{ margin:0; padding:0; } .nTab .TabTitle li{ float: left; width: 60px; cursor: pointer; padding-top: 6px; padding-right: 0px; padding-left: 0px; padding-bottom: 7px; list-style-type: none; } .nTab .TabTitle .active{ background:url(http://www.webdm.cn/images/20090915/tab_bg1.gif) left -25px no-repeat;border-left:1px #C7C7CD solid;border-top:1px #C7C7CD solid;border-bottom:1px #fff solid;} .nTab .TabTitle .normal{ background:url(http://www.webdm.cn/images/20090915/tab_bg1.gif);border-top:1px #C7C7CD solid;border-bottom:1px #C7C7CD solid;} .nTab .TabContent{ width:auto;background:#fff; margin: 0px auto; padding:10px 0 0 0; border-right:1px #C7C7CD solid;border-left:1px #C7C7CD solid; } .none {display:none;} </style> <script type="text/javascript"> function nTabs(thisObj,Num){ if(thisObj.className == "active")return; var tabObj = thisObj[removed].id; var tabList = document.getElementById(tabObj).getElementsByTagName("li"); for(i=0; i <tabList.length; i++) { if (i == Num) { thisObj.className = "active"; document.getElementById(tabObj+"_Content"+i).style.display = "block"; }else{ tabList[i].className = "normal"; document.getElementById(tabObj+"_Content"+i).style.display = "none"; } } } </script> </head> <body> <br /> <br /> <center> <div style="text-align:center; margin-left:200px;"> <!-- Ñ¡Ï¿ªÊ¼ --> <div class="nTab"> <!-- ±êÌ⿪ʼ --> <div class="TabTitle"> <ul id="myTab0"> <li class="active" onclick="nTabs(this,0);">Ê×Ò³</li> <li class="normal" onclick="nTabs(this,1);">×îиüÐÂ</li> <li class="normal" onclick="nTabs(this,2);">ÏÂÔØÅÅÐÐ</li> <li class="normal" onclick="nTabs(this,3);">·ÖÀà</li> <li class="normal" onclick="nTabs(this,4);">ÍøÒ³ÌØЧ</li> <li class="normal" onclick="nTabs(this,5);">ASPÔ´Âë</li> <li class="normal" onclick="nTabs(this,6);">PHPÔ´Âë</li> <li class="normal" onclick="nTabs(this,7);">JSPÔ´Âë</li> <li class="normal" onclick="nTabs(this,8);">JAVAÔ´Âë</li> </ul> </div> <!-- ÄÚÈÝ¿ªÊ¼ --> <div class="TabContent"> <div id="myTab0_Content0"> ³ö×Ô£º<a href="http://www.webdm.cn" target="_blank">ÍøÒ³´úÂëÕ¾</a></div> <div id="myTab0_Content1" class="none"><a href="/">×îиüÐÂ</a></div> <div id="myTab0_Content2" class="none"><a href="/">ÏÂÔØÅÅÐÐ</a></div> <div id="myTab0_Content3" class="none"><a href="/">´úÂë·ÖÀà</a></div> <div id="myTab0_Content4" class="none"><a href="http://www.webdm.cn">ÍøÒ³ÌØЧ</a></div> <div id="myTab0_Content5" class="none"><a href="/">ASPÀྫƷ³ÌÐò</a></div> <div id="myTab0_Content6" class="none"><a href="http://www.webdm.cn">PHP¾«Æ·³ÌÐò</a></div> <div id="myTab0_Content7" class="none"><a href="/">JSPÔ´ÂëÇø</a></div> <div id="myTab0_Content8" class="none"><a href="http://www.webdm.cn">/Ìṩ¾«Æ·JAVAÔ´Âë</a></div> </div> </div> <!-- Ñ¡Ï½áÊø --> </div> </center> </body> </html>
ÍƼöÐÅÏ¢
- jqueryʵÏÖÍøվͼƬÀÁ¼ÓÔØ´úÂë
- jQuery Tooltips²å¼þ
- jQueryµÄ.bind()¡¢.live()ºÍ.delegate(....
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- Ä㲻ϲ»¶»ðºü£¬µ«ÓÖϲ»¶firebug£¬ÄǾ͸úÎÒÒ»ÆðÀ´ÔÚIEÉÏ....
- ¸ù¾ÝÏÔʾÆ÷·Ö±æÂʵ÷ÕûÒ³ÃæÏÔʾµÄJavascript½Å±¾
- jQuery дµÄ·ÂÐÂÀË΢²© ÏòϹö¶¯Ð§¹û¡¾×ªÔØ¡¿
- ͨÓõÄJqueryÑ¡ÔñÆ÷
- jQuery ½áºÏ Json Ìá½»Êý¾Ýµ½Webservice£¬....
- ×ÔÖÆjQueryÖÇÄÜÌáʾ²å¼þһö
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- js»ñÈ¡srcÖд«µÝµÄ²ÎÊý
- jqueryʵÏÖÍøվͼƬÀÁ¼ÓÔØ´úÂë
- ÈÃä¯ÀÀÆ÷ÆÁ±ÎµôJavaScriptµÄ³ö´íÌáʾ
- github²»ÄܼÓÔØcss¡¢js½â¾ö°ì·¨
- ÎÒÖªµÀµÄJavaScript -- Éè¼Æģʽ(ÇŽÓ)Ó¦ÓÃÖ® ¨C ....
- 15¸öÖµµÃ¿ª·¢ÈËÔ±¹Ø×¢µÄjQuery¿ª·¢¼¼ÇɺÍÐĵÃ
- dz̸JavascriptÃæÏò¶ÔÏó±à³Ì
- JS¼òµ¥¶¯»·â×°
- JavaScript³õѧÕßӦעÒâµÄÆ߸öϸ½Ú
- jQuery Tooltips²å¼þ
ÆÀÂÛ