开发者

How to calculate height of browser menubar,toolbar,navigation bar , bookmark using jquery or javascript

I want to calculate height of browser using jquery so that i can set my another div elemen开发者_如何学编程t accordingly . So what do I have to do in order to make it work???


There is .height() method present in the jquery which will give you a height of the different element

to find height of the browser or your HTML document than write

$(window).height(); // returns height of browser viewport
$(document).height(); // returns height of HTML document

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜