本文实例讲述了jQuery实现带滑动条的菜单效果代码。分享给大家供大家参考。具体如下:
这是一款带滑动条的jQuery滑动菜单,菜单下边有一个蓝色的线条,鼠标移上哪里它就跟向哪里,可以指引当前菜单的位置,另外,动画效果是基于jquery的animate(),对此有兴趣学习的正好可参考下代码。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/jquery-move-buttom-line-style-codes/
具体代码如下:
带滑动条的jQuery滑动菜单 body{ font:12px/1.5 Arial,5b8b4f53,sans-serif;background:#fff; color:#333; position:relative} .header { width:990px; min-width:990px; margin:0 auto; height:68px; position:relative; z-index:200; overflow:hidden} .headerTab { height:44px; padding:24px 0 0 0; position:relative; width:990px; min-width:990px; margin:0 auto; } .headerTab a { padding:0 5px; float:left; font-size:14px; color:#333; height:42px; overflow:hidden; line-height:44px;font-family:5FAE8F6F96C59ED1,5B8B4F53; margin-left:10px; display:inline} .headerTab a:hover { text-decoration:none; color:#333} .headerTab .tabLine { position:absolute; top:66px; height:2px; background:#35b0f2; left:0; width:100%; overflow:hidden; font-size:0; line-height:0;} 考高分网下载中心最新更新广告中心Delphi源码VC++源码更新日志
希望本文所述对大家的jquery程序设计有所帮助。



