js实现顶部可折叠的菜单工具栏效果实例

2022-01-13,,,,

这篇文章主要介绍了js实现顶部可折叠菜单工具栏效果,可实现鼠标滑过菜单工具栏出现折叠与展开效果,涉及javascript鼠标事件及样式的操作技巧,需要的朋友可以参考下

本文实例讲述了js实现顶部可折叠的菜单工具栏效果。分享给大家供大家参考。具体实现方法如下:

   可以折叠的菜单工具栏 html,body{ margin:0; } body{ url(img.jpg-600) repeat-x; } ha{ margin:0 auto; } img{ border:none; } #fx_topToolbar{ position:relative;top:-76px;left:0; margin:0 auto;height:92px; background:#0C3E74; width:700px; text-align:center; } #fx_topToolbar .shell{ margin:0 auto;padding:13px 0; } #btn_offOn{ position:absolute;bottom:-8px; left:20px;height:24px; width:150px; background:url(img34.gif) no-repeat; } #btn_offOn a{ display:block;zoom:1;height:24px; position:relative;right:-16px; background:url(tip.gif) no-repeat 100% 0; }      

希望本文所述对大家的javascript程序设计有所帮助。

以上就是js实现顶部可折叠的菜单工具栏效果实例的详细内容,更多请关注本站其它相关文章!

《js实现顶部可折叠的菜单工具栏效果实例.doc》

下载本文的Word格式文档,以方便收藏与打印。