Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个单页网站,并希望将固定菜单放在滚动条内容上:
http://jsfiddle.net/VFQF8/
但是使用固定位置,我无法将菜单保留在内容之上。任何想法?
#nav { left: 20px; list-style: none; position: fixed; top: 20px; }
演示
#nav { list-style: none; position: fixed; top: 20px; width: inherit; } #section-1{ margin-top:200px; }