亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 編程 > JavaScript > 正文

修改layui的后臺模板的左側導航欄可以伸縮的方法

2019-11-19 10:50:19
字體:
來源:轉載
供稿:網友

原生的左側導航欄代碼:

<div class="layui-side layui-bg-black">  <div class="layui-side-scroll">   <!-- 左側導航區域(可配合layui已有的垂直導航) -->   <ul class="layui-nav layui-nav-tree" lay-filter="test">    <li class="layui-nav-item layui-nav-itemed">     <a class="" 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" 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>     <dl class="layui-nav-child">      <dd><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" 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></dd>      <dd><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" 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></dd>      <dd><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" 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></dd>      <dd><a href="">超鏈接</a></dd>     </dl>    </li>    <li class="layui-nav-item">     <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" 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>     <dl class="layui-nav-child">      <dd><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" 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></dd>      <dd><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" 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></dd>      <dd><a href="">超鏈接</a></dd>     </dl>    </li>    <li class="layui-nav-item"><a href="">云市場</a></li>    <li class="layui-nav-item"><a href="">發布商品</a></li>   </ul>  </div> </div>


自己修改的:

<div class="layui-side layui-bg-black">  <div class="layui-side-scroll">    <div title="菜單縮放" class="kit-side-fold"><i class="fa fa-navicon" aria-hidden="true"></i></div>    <!-- 左側導航區域(可配合layui已有的垂直導航) -->    <ul class="layui-nav layui-nav-tree" lay-filter="test">      <li class="layui-nav-item layui-nav-itemed">        <a class="" 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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-user-circle-o fa-lg"></i> <span >生源追蹤</span></a>        <dl class="layui-nav-child">          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-list fa-lg"></i> <span >生源列表</span></a></dd>          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-clipboard fa-lg"></i> <span >學校信息</span></a></dd>          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-file-text fa-lg"></i> <span >工做計劃</span></a></dd>        </dl>      </li>      <li class="layui-nav-item">        <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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-vcard fa-lg"></i> <span >學員管理</span></a>        <dl class="layui-nav-child">          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-th-list fa-lg"></i> <span >學員列表</span></a></dd>          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-user-o fa-lg"></i> <span >考勤管理</span></a></dd>          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-send-o fa-lg"></i> <span >溝通計劃</span></a></dd>          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-frown-o fa-lg"></i> <span >成績管理</span></a></dd>        </dl>      </li>      <li class="layui-nav-item">        <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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-diamond fa-lg"></i> <span >管理設置</span></a>        <dl class="layui-nav-child">          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-address-book fa-lg"></i> <span >賬號管理</span></a></dd>          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-check-square fa-lg"></i> <span >授權管理</span></a></dd>        </dl>      </li>      <li class="layui-nav-item">        <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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-gear fa-lg"></i> <span >系統管理</span></a>        <dl class="layui-nav-child">          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-window-restore fa-lg"></i> <span >系統信息</span></a></dd>          <dd><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" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><i class="fa fa-database fa-lg"></i> <span >操作日志</span></a></dd>        </dl>      </li>    </ul>  </div></div>

JQ代碼:

<script>  //JavaScript代碼區域  layui.use('element', function(){    var element = layui.element;  });  var isShow = true; //定義一個標志位  $('.kit-side-fold').click(function(){    //選擇出所有的span,并判斷是不是hidden    $('.layui-nav-item span').each(function(){      if($(this).is(':hidden')){        $(this).show();      }else{        $(this).hide();      }    });    //判斷isshow的狀態    if(isShow){      $('.layui-side.layui-bg-black').width(60); //設置寬度      $('.kit-side-fold i').css('margin-right', '70%'); //修改圖標的位置      //將footer和body的寬度修改      $('.layui-body').css('left', 60+'px');      $('.layui-footer').css('left', 60+'px');      //將二級導航欄隱藏      $('dd span').each(function(){        $(this).hide();      });      //修改標志位      isShow =false;    }else{      $('.layui-side.layui-bg-black').width(200);      $('.kit-side-fold i').css('margin-right', '10%');      $('.layui-body').css('left', 200+'px');      $('.layui-footer').css('left', 200+'px');      $('dd span').each(function(){        $(this).show();      });      isShow =true;    }  });</script>

以上這篇修改layui的后臺模板的左側導航欄可以伸縮的方法就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持武林網。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
91禁国产网站| 亚洲国产欧美一区二区丝袜黑人| 欧美成人一区二区三区电影| 伊人伊成久久人综合网站| 欧美老女人www| 国产亚洲一区二区在线| 青青在线视频一区二区三区| 国产精品久久久久久久久久三级| 亚洲欧洲偷拍精品| 国产精品成熟老女人| 九九热在线精品视频| 国产午夜精品全部视频在线播放| 国产精品精品国产| 国产精品美乳一区二区免费| 91精品在线播放| 国产精品高潮在线| 亚洲a一级视频| 国产精品高清免费在线观看| 国产精品爽爽爽| 日本精品性网站在线观看| 欧美大片欧美激情性色a∨久久| 久久成人国产精品| 日本欧美爱爱爱| 欧美精品免费在线观看| 91色精品视频在线| 一区二区欧美在线| 久久综合久久八八| 国产精品999| 欧美天天综合色影久久精品| 日韩电影免费观看在线观看| 久久99国产综合精品女同| 性欧美视频videos6一9| 国产不卡视频在线| 亚洲第一精品久久忘忧草社区| 精品欧美aⅴ在线网站| 国产精品福利久久久| 正在播放国产一区| 中文字幕av一区二区三区谷原希美| 久久久久久网站| 国产精品一二区| 98精品在线视频| 国产精品第2页| 精品中文字幕乱| 成人亲热视频网站| 日本精品视频网站| 91伊人影院在线播放| 国产成人精品综合久久久| 久久人人看视频| 国产成人aa精品一区在线播放| 国产一区二区三区四区福利| 国产日产亚洲精品| 亚洲黄一区二区| 上原亚衣av一区二区三区| 亚洲free性xxxx护士hd| 国产视频欧美视频| 91精品国产综合久久久久久久久| 美乳少妇欧美精品| 91麻豆国产语对白在线观看| 两个人的视频www国产精品| 国色天香2019中文字幕在线观看| 欧美成人免费播放| 中文字幕一区二区精品| 日韩美女视频在线观看| 国产精品成人播放| 欧美色videos| 亚洲精品中文字| 成人激情在线播放| 国产精品永久免费观看| 国产噜噜噜噜噜久久久久久久久| 亚洲性生活视频在线观看| 国产在线视频不卡| 久久久亚洲精选| 97婷婷大伊香蕉精品视频| 欧美巨猛xxxx猛交黑人97人| 欧美日韩国产999| 亚洲天堂免费观看| 性色av香蕉一区二区| 亚洲欧美一区二区三区久久| 久久久91精品国产一区不卡| 国产精品成人av性教育| 日韩成人高清在线| 日韩av不卡电影| 欧美精品生活片| 91成人在线播放| 精品国产欧美一区二区三区成人| 日本一欧美一欧美一亚洲视频| 96pao国产成视频永久免费| 国产拍精品一二三| 久久97久久97精品免视看| 国内免费精品永久在线视频| 亚洲精品美女免费| 欧美综合激情网| 国产精品久久久久久一区二区| 欧洲一区二区视频| 国内精品久久久久久久久| 日本欧美中文字幕| 国产精品视频久| 亚洲美女av在线| 欧美成人中文字幕| xx视频.9999.com| 最近2019中文字幕在线高清| 国产美女高潮久久白浆| 国产91精品久久久久久久| 国产精品中文字幕在线| 精品美女国产在线| 成人a级免费视频| 国产91精品久| 91国产中文字幕| 26uuu另类亚洲欧美日本老年| 欧美精品www在线观看| 91精品久久久久久久久中文字幕| 国产视频精品一区二区三区| 国外色69视频在线观看| 在线视频欧美日韩精品| 97色在线播放视频| 欧美日韩国产在线看| 国产综合在线观看视频| 日韩中文字幕精品视频| 色老头一区二区三区在线观看| 97精品久久久中文字幕免费| 日韩中文字幕在线播放| 精品动漫一区二区三区| 欧美激情a∨在线视频播放| 亚洲男人天堂手机在线| 成人免费网站在线| 色七七影院综合| 欧美一区三区三区高中清蜜桃| 国产精品自拍偷拍视频| 亚洲第一福利视频| 欧美成人午夜激情| 国产精品人成电影| 久久久欧美精品| 亚洲人成网站777色婷婷| 91久久精品久久国产性色也91| 精品国产依人香蕉在线精品| 久久久999国产| 日韩免费在线电影| 深夜精品寂寞黄网站在线观看| 欧美精品性视频| 91欧美激情另类亚洲| 久热精品视频在线观看一区| 国产成人亚洲综合91| 亚洲国产欧美一区二区三区久久| 欧美一区三区三区高中清蜜桃| 97人人做人人爱| 亚洲成人1234| 亚洲色图综合久久| 国内精品久久久久久| 亚洲天天在线日亚洲洲精| 国产精品一香蕉国产线看观看| 国产精品三级久久久久久电影| 欧洲中文字幕国产精品| 麻豆国产精品va在线观看不卡| 日韩免费观看高清| 91久久久久久久| 日韩美女写真福利在线观看| 国产精品视频中文字幕91| 久久久久久av| 欧美与黑人午夜性猛交久久久| 91手机视频在线观看| 久久91超碰青草是什么| 97**国产露脸精品国产| 日韩激情视频在线播放| 色视频www在线播放国产成人|