开发者

How do I use scrollTop when trying to figure out sidebar position?

开发者 https://www.devze.com 2023-03-16 14:42 出处:网络
I posted this question yesterday and 开发者_开发问答the answer I go mentioned that I should check if scrollTop is higher than your header height. My question is how do I do this with query. How do I d

I posted this question yesterday and 开发者_开发问答the answer I go mentioned that I should check if scrollTop is higher than your header height. My question is how do I do this with query. How do I do this when different people have different screen sizes


$('selector').height () will return the height of the first element to match the selector in pixels. It's all in the manual.

http://api.jquery.com/height/

0

精彩评论

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