PHP異常處理:set_error_handler()函數(shù)的用法
732
2023-12-14
本文實(shí)例講述了jQuery+CSS實(shí)現(xiàn)簡(jiǎn)單切換菜單的方法。分享給大家供大家參考,具體如下:
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>無(wú)標(biāo)題頁(yè)</title> <script src="http://www.gimoo.net/t/1901/jquery-1.7.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function(){ toggleEvent(0); var mTitle = $(".menuTitle"); mTitle.each(function(i){ $(this).click(function(){ toggleSlideEvent(i); $(this).css("border-bottom","1px #ccccff solid"); }); }); }); function toggleSlideEvent(i) { $("ul",".menu1").css("display","none"); $("ul",".menu1").eq(i).slideDown(); $(".menuTitle").each(function(){ $(this).css("border-bottom","0px #ccccff solid"); }); } function toggleEvent(i) { $("ul",".menu1").css("display","none"); $("ul",".menu1").eq(i).css("display","block"); $(".menuTitle").eq(i).css("border-bottom","1px #ccccff solid"); } </script> <style type="text/css"> .menu1 { border: 1px #CCCCFF solid; border-top: 0px; width: 160px; } .menuTitle { width: 100%; height: 26px; border-bottom: 0px #CCCCFF solid; border-top: 1px #CCCCFF solid; text-align: left; line-height: 26px; cursor: pointer; } ul { border: 0px #CCCCFF solid; width: 100%; margin-left: 0px; margin-top: 0px; } ul li { height: 36px; line-height:36px; border: 0px gray solid; margin-top: 0px; margin-left: 0px; padding-left:20px; list-style-type:none; /*background:url(images/Title.png);*/ } ul li:hover { height: 36px; line-height:36px; border: 0px gray solid; margin-top: 0px; margin-left: 0px; padding-left:20px; list-style-type:none; /*background:url(images/Title.png);*/ cursor:pointer; } </style> </head> <body> <form id="form1" runat="server"> <div class="menu1"> <div class="menuTitle"> TITLE1</div> <ul> <li>Menu1</li> <li>Menu2</li> <li>Menu3</li> <li>Menu4</li> <li>Menu5</li> </ul> <div class="menuTitle"> TITLE2</div> <ul> <li>Menu1</li> <li>Menu2</li> <li>Menu3</li> <li>Menu4</li> <li>Menu5</li> </ul> <div class="menuTitle"> TITLE3</div> <ul> <li>Menu1</li> <li>Menu2</li> <li>Menu3</li> <li>Menu4</li> <li>Menu5</li> </ul> </div> </form> </body> </html>
更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery擴(kuò)展技巧總結(jié)》、《jQuery常用插件及用法總結(jié)》、《jQuery拖拽特效與技巧總結(jié)》、《jQuery表格(table)操作技巧匯總》、《jquery中Ajax用法總結(jié)》、《jQuery常見(jiàn)經(jīng)典特效匯總》、《jQuery動(dòng)畫與特效用法總結(jié)》及《jquery選擇器用法總結(jié)》
希望本文所述對(duì)大家jQuery程序設(shè)計(jì)有所幫助。
#免責(zé)聲明#
本站[綠夏技術(shù)導(dǎo)航]提供的一切軟件、教程和內(nèi)容信息僅限用于學(xué)習(xí)和研究目的;不得將上述內(nèi)容用于商業(yè)或者非法用途,否則,一切后果請(qǐng)用戶自負(fù)。本站信息來(lái)自網(wǎng)絡(luò)收集整理,版權(quán)爭(zhēng)議與本站無(wú)關(guān)。您必須在下載后的24個(gè)小時(shí)之內(nèi),從您的電腦或手機(jī)中徹底刪除上述內(nèi)容。如果您喜歡該程序或內(nèi)容,請(qǐng)支持正版,購(gòu)買注冊(cè),得到更好的正版服務(wù)。我們非常重視版權(quán)問(wèn)題,如有侵權(quán)請(qǐng)郵件[admin@lxwl520.com]與我們聯(lián)系進(jìn)行刪除處理。敬請(qǐng)諒解!