自动停靠在窗口右侧,当用户滚动鼠标滚轮时,自动定位到所属章节
- Getting Started Guide
- Clone/download this floatmenu
- Start building your App
-
解压下载的文件到本地目录,然后使用chrome.exe浏览index.html;
-
本程序旨在演示悬浮菜单的原理,为了保持代码简洁,没有使用jquery
-
要兼容其它浏览器,请自行改造相关样式和js代码
-
this will be available on
http://localhost/index.html/
- 为了演示效果,请尽量添加内容,使滚动条可以自由滚动
- 同一屏中包含多个章节,悬浮菜单的状态指示可能会因为高度不够而不能正确指示
- 本程序完全免费,可以自由使用。
演示地址:http://sandbox.runjs.cn/show/to8wdmuy
Visit http://runjs.cn/code/to8wdmuy for detail information.