开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜