js获取浏览器窗口页面宽度、高度的方法
不多说,直接上代码
alert($(window
).height());
alert($(document
).height());
alert($(document
.body
).height());
alert($(document
.body
).outerHeight(true));
alert($(window
).width());
alert($(document
).width());
alert($(document
.body
).width());
alert($(document
.body
).outerWidth(true));
alert($(document
).scrollTop());
alert($(document
).scrollLeft());
感谢阅读,欢迎点赞关注收藏哦~
转载请注明原文地址:https://ipadbbs.8miu.com/read-7660.html