jQuery 响应式菜单,窗口小或者低分辨率隐藏部分导航内容
JavaScript Code
- <script>
- $(function() {
- $('.pgwMenu').pgwMenu({
- dropDownLabel: '菜单',
- viewMoreLabel: '更多<span class="icon"></span>'
- });
- $('.pgwMenuCustom').pgwMenu({
- mainClassName: 'pgwMenuCustom',
- dropDownLabel: '菜单',
- viewMoreLabel: '更多<span class="icon"></span>'
- });
- });
- </script>
XML/HTML Code
- <h2>深色样式(默认)</h2>
- <ul class="pgwMenu">
- <li><a class="selected" href="">首页</a></li>
- <li><a href="code">代码</a></li>
- <li><a href="material">素材</a></li>
- <li><a href="template">模板</a></li>
- <li><a href="javascript:">关于</a></li>
- <li><a href="javascript:">服务</a></li>
- <li><a href="contact">联系</a></li>
- </ul>
原文地址:http://www.freejs.net/article_daohangcaidan_466.html