• <fieldset id="8imwq"><menu id="8imwq"></menu></fieldset>
  • <bdo id="8imwq"><input id="8imwq"></input></bdo>
    最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
    問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
    當前位置: 首頁 - 科技 - 知識百科 - 正文

    jQuery實現常見的隱藏與展示列表效果示例

    來源:懂視網 責編:小采 時間:2020-11-27 22:13:44
    文檔

    jQuery實現常見的隱藏與展示列表效果示例

    jQuery實現常見的隱藏與展示列表效果示例:本文實例講述了jQuery實現常見的隱藏與展示列表效果。分享給大家供大家參考,具體如下: <!DOCTYPE html> <html> <head> <meta charset=utf-8> <meta http-equiv=X-UA-Compatible
    推薦度:
    導讀jQuery實現常見的隱藏與展示列表效果示例:本文實例講述了jQuery實現常見的隱藏與展示列表效果。分享給大家供大家參考,具體如下: <!DOCTYPE html> <html> <head> <meta charset=utf-8> <meta http-equiv=X-UA-Compatible

    本文實例講述了jQuery實現常見的隱藏與展示列表效果。分享給大家供大家參考,具體如下:

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>www.gxlcms.com jquery品牌列表效果</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link href="" rel=" rel="external nofollow" stylesheet">
    <style>
     *{
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     -moz-box-sizing: border-box;
     }
     body {
     font: 16px/20px "Microsoft yahei,'微軟雅黑'"
     color: #fff;
     }
     ul {
     list-style-type:none;
     }
     a {
     text-decoration: none;
     color: #000;
     }
     ul li {
     float: left;
     text-align: right;
     }
     .clear:before,.clear:after {
     content: "";
     clear: both;
     display: table;
     height: 0;
     overflow: hidden;
     zoom: 1;
     }
     .SubCategoryBox {
     width: 473px;
     margin: 0 auto;
     border: 1px solid;
     }
     .SubCategoryBox ul{
     padding: 5px 10px;
     }
     .SubCategoryBox ul li {
     padding: 5px;
     }
     .SubCategoryBox ul li:nth-child(3n-2) {
     width: 130px;
     }
     .SubCategoryBox ul li:nth-child(3n-1) {
     width: 161px;
     margin-right: 30px;
     }
     .SubCategoryBox ul li:nth-child(3n) {
     width: 130px;
     }
     .showmore {
     text-align: center;
     }
     .showmore a {
     background: #eef;
     color: #CFCFE0;
     }
     .hightlight a,.hightlight i {
     color: red;
     /* font-weight: bold; */
     }
    </style>
    </head>
    <body>
     <div class="SubCategoryBox">
     <ul class="clear" id="bancon">
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >佳能</a><i>(30441)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >索尼</a><i>(30442)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >三星</a><i>(30443)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >尼康</a><i>(30444)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >松下</a><i>(30445)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >卡西歐</a><i>(30446)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >富士</a><i>(30447)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >柯達</a><i>(30448)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >賓得</a><i>(30449)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >理光</a><i>(30450)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >奧斯巴林</a><i>(30451)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >明基</a><i>(30452)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >愛國者</a><i>(30453)</i></li>
     <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >其他品牌相機</a><i>(30454)</i></li>
     </ul>
     <div class="showmore" id="showpp">
     <a href=""><span>顯示全部品牌</span></a>
     </div>
     </div>
     <script src="http://cdn.bootcss.com/jquery/2.1.0/jquery.js"></script>
     <script>
     $(function(){
     var $target=$("#bancon li:gt(5):not(:last)");
     $target.hide();
     var $toggleBtn=$("#showpp a");
     $toggleBtn.click(function(){
     if($target.is(":visible")){
     $target.hide();
     $(this).find("span").text("顯示所有品牌");
     $("ul li").removeClass('hightlight')
     }
     else {
     $target.show();
     $(this).find('span').text("精簡顯示品牌");
     $("ul li").filter(":contains('佳能'),:contains('尼康'),:contains('奧斯巴林')").addClass('hightlight')
     }
     return false; /*阻止a標簽的跳轉*/
     });
     });
     </script>
    </body>
    </html>
    
    

    使用在線HTML/CSS/JavaScript代碼運行工具 http://tools.jb51.net/code/HtmlJsRun測試效果如下:

    更多關于jQuery相關內容感興趣的讀者可查看本站專題:《jQuery擴展技巧總結》、《jQuery常用插件及用法總結》、《jQuery拖拽特效與技巧總結》、《jQuery表格(table)操作技巧匯總》、《jquery中Ajax用法總結》、《jQuery常見經典特效匯總》、《jQuery動畫與特效用法總結》及《jquery選擇器用法總結》

    希望本文所述對大家jQuery程序設計有所幫助。

    聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

    文檔

    jQuery實現常見的隱藏與展示列表效果示例

    jQuery實現常見的隱藏與展示列表效果示例:本文實例講述了jQuery實現常見的隱藏與展示列表效果。分享給大家供大家參考,具體如下: <!DOCTYPE html> <html> <head> <meta charset=utf-8> <meta http-equiv=X-UA-Compatible
    推薦度:
    標簽: 顯示 隱藏 實現
    • 熱門焦點

    最新推薦

    猜你喜歡

    熱門推薦

    專題
    Top
    主站蜘蛛池模板: 狠狠精品干练久久久无码中文字幕| 免费精品精品国产欧美在线| 成人国产一区二区三区精品 | 精品国产三级a∨在线欧美| 国产精品欧美久久久久天天影视| 精品久久人妻av中文字幕| 日韩精品无码久久一区二区三 | 国产精品久线在线观看| 婷婷久久精品国产| 国产精品 猎奇 另类视频| 99香蕉国产精品偷在线观看| 亚洲精品无码不卡在线播HE| 久久久国产精品| 国产亚洲精品看片在线观看| 欧美精品一区二区精品久久| 91精品美女在线| 国产99视频精品免费专区| 亚洲AV无码成人精品区蜜桃| 无码精品人妻一区| 精品国产乱码久久久久久浪潮| 桃花岛精品亚洲国产成人| 成人午夜精品网站在线观看| 欧洲成人午夜精品无码区久久 | 国产剧情国产精品一区| 人人妻人人澡人人爽人人精品97| 欧美成人精品一区二三区在线观看| 久草欧美精品在线观看| 国产精品最新国产精品第十页| 国产福利电影一区二区三区,欧美国产成人精品一| 国产精品视频a播放| 国产精品一区二区久久精品| 国产精品电影在线观看| 国产福利微拍精品一区二区| 成人午夜精品视频在线观看| 99久久成人国产精品免费| 国产成人精品免费久久久久| 国产欧美精品一区二区三区| 精品国精品国产自在久国产应用 | 一色屋精品视频在线观看| 亚洲综合欧美精品一区二区| 亚洲国产精品自在拍在线播放|