右侧滑动多级导航菜单
同时适用移动端与pc端
XML/HTML Code
- <header><a href="http://www.freejs.net/" class="logo"><img src="http://www.freejs.net/images/logo.png"></a>
- <div class="navButton"><span></span><span></span><span></span></div>
- <nav>
- <ul>
- <!-- 没有二级的href、data-href两个都放链接 -->
- <h1 class="navC"><a href="http://www.freejs.net/" data-href="http://www.freejs.net/">Home</a></h1>
- </ul>
- <ul>
- <h1 ><a data-href="/about/"
- href="javascript:void(0);">About</a></h1>
- <li><a href="/about/">About</a></li>
- </ul>
- <ul>
- <h1 ><a href="">Product</a></h1>
- </ul>
- <ul>
- <h1 ><a data-href=""
- href="javascript:void(0);">Support</a></h1>
- <li><a href="">Download</a></li>
- </ul>
- </nav>
- </header>
- <div style="background:#339; height:1500px" >
- </div>
原文地址:http://www.freejs.net/article_daohangcaidan_921.html