Home >Web Front-end >JS Tutorial >Navigation follows the scroll bar and moves to the top sample code_javascript skills

Navigation follows the scroll bar and moves to the top sample code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:22:491069browse
复制代码 代码如下:

#topmenu{position:absolute;top:100px;background:#4b4a4a;width:100%;margin:0 auto;clear:both;overflow:hidden;z-index:998;left:0}



效果图如下:
Navigation follows the scroll bar and moves to the top sample code_javascript skills
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