开发者

How to find Masterpage height and width using Javascript

开发者 https://www.devze.com 2023-01-08 23:18 出处:网络
How to find Masterpage offsetheigh开发者_Python百科t and offsetwidth using Javascript ?Isn\'t the MasterPage height and width just the document\'s height and width? And by offsetWidth and offsetHeight

How to find Masterpage offsetheigh开发者_Python百科t and offsetwidth using Javascript ?


Isn't the MasterPage height and width just the document's height and width? And by offsetWidth and offsetHeight, do you mean you want the width and height? Offset is usually for left and top.

Use jQuery's width and height methods:

var width = $(document).width();
var height = $(document).height();
0

精彩评论

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

关注公众号