IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==>可见区域宽度document.documentElemen...
分类:
Web程序 时间:
2014-09-12 10:08:13
阅读次数:
250
JQuery-------做手机Web开发做浏览器兼容用到了,所以在网上找了些汇总下。alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.bod...
分类:
Web程序 时间:
2014-08-20 19:36:52
阅读次数:
221
有三种方法能够确定浏览器窗口的尺寸(浏览器的视口,不包括工具栏和滚动条
)。
对于Internet Explorer、Chrome、Firefox、Opera 以及 Safari:
window.innerHeight - 浏览器窗口的内部高度
window.innerWidth - 浏览器窗口的内部宽度
对于 Internet Explorer 8、7、...
分类:
Web程序 时间:
2014-06-05 09:55:20
阅读次数:
255
IE中: document.body.clientWidth ==> BODY对象宽度
document.body.clientHeight ==> BODY对象高度 document.documentElement.clientWidth
==> 可见区域宽度 document.documentE...
分类:
Web程序 时间:
2014-05-15 10:08:17
阅读次数:
307