开发者

How to freeze a column using Javascript

开发者 https://www.devze.com 2023-03-28 03:05 出处:网络
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 pageJust use CSS property:

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

精彩评论

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