How to freeze a column using Javascript
I have a two column layout via CSS, and I'm wondering how I can make the list on the开发者_开发知识库 sidebar column stay frozen down as the user scrolls down on the page
Just use CSS property:
position: fixed;
The description of it might be "The element is positioned relative to the browser window", I assume this is what you want to achieve.
精彩评论