For example: in Taobao product details, when the scroll bar is pulled down, the product details and evaluation nav will be fixed. Many websites now have similar effects. Is this popular now? Yuanfang, what do you think? I am also here I searched for codes on the Internet and found that many of them were messy and useless. So, I wrote one myself. The code is very simple, with only a few lines, but unfortunately, it is not compatible with IE6. If anyone has an example that is compatible with IE6, please give me some advice.
Just post the code.
demo
< /div>
I am red now, If you scroll down, it will appear blue. I haven't fixed it yet.
Friendly reminder: I only provide a simple Demo. In actual development, things in the Demo still need to be modified.
Online demo:
http://demo.jb51.net/js/2012/scrollfixed/
Attachment:
Demo download
Statement of this Website
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