Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

layui 导航栏默认定位到主页

image.png

<div class="layui-tab?layui-tab-card?site-demo-button" style="position:?relative;">

 <ul class="layui-nav">

     <li class="layui-nav-item?layui-this">

        <a href="#" data-url="shopping" data-id="33" class="site-demo-active" data-type="tabAdd">主页</a>

     </li>

 <li class="layui-nav-item">

     <a href="javascript:;">123</a>

     <dl class="layui-nav-child">

         <dd>

            <a href="#" data-url="111" data-id="11" data-title="选项a" class="site-demo-active" data-type="tabAdd">选项a</a>

         </dd>

         <dd>

            <a href="#" data-url="b" data-id="22" data-title="选项b" class="site-demo-active" data-type="tabAdd">选项b</a>

         </dd>

     </dl>

 </li>

     <li class="layui-nav-item">

        <a href="#" data-url="111" data-id="33" class="site-demo-active" data-type="tabAdd">产品c</a>

     </li>

 </ul>

     <div class="layui-tab" lay-filter="demo" lay-allowclose="true">

         <ul class="layui-tab-title" style="display:?none;">

         </ul>

         <div class="layui-tab-content">

         </div>

     </div>

 </div>

image.png
希望刚进入的时候就能定位到首页,就是shopping.html,天啦,第一次用layui,心态要爆炸了,看了一上午还是很晕,希望了解的走过路过,能给点小思路,谢谢各位了!!!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

首页在哪?这是所有导航?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...