开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜