开发者

how to fixed the only one "li"?

开发者 https://www.devze.com 2023-04-08 08:45 出处:网络
I have number of ul formed as a table. I want to fix the first \"li\" of each \"ul\" while scrolling.

I have number of ul formed as a table. I want to fix the first "li" of each "ul" while scrolling.

i have done some work but can't able to fix the issue,

Here jsfiddle link: http://jsfiddle.net/thilakar/PpYpa/2/

Please help me out from the above issu开发者_如何学Ce.

Thanks in advance.


Use this...

ul {........}

ul li:first-child {position: fixed;}

This will fix your problem and is supported in most modern browsers.

0

精彩评论

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

关注公众号