Home  >  Article  >  Backend Development  >  导航随着页面移动而移动是如何做的

导航随着页面移动而移动是如何做的

WBOY
WBOYOriginal
2016-06-13 13:25:36971browse

导航随着页面移动而移动是怎么做的?
类似于淘宝的那个样子,当你下拉页面的时候,那个导航条会一直保持在顶部。

------解决方案--------------------
监视body的scrollTop,然后控制导航栏的position
------解决方案--------------------
http://www.helloweba.com/view-blog-85.html
去谷歌搜关键字 “js浮动层定位” 还有很多实例。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn