js得到屏幕宽高、页面宽高 (window.screen.availHeight)等
2016-12-09 14:00
239 查看
window.screen.availWidth 返回当前屏幕宽度(空白空间)
window.screen.availHeight 返回当前屏幕高度(空白空间)
window.screen.width 返回当前屏幕宽度(分辨率值)
window.screen.height 返回当前屏幕高度(分辨率值)
window.document.body.offsetHeight; 返回当前网页高度
window.document.body.offsetWidth; 返回当前网页宽度
window.screen.availHeight 返回当前屏幕高度(空白空间)
window.screen.width 返回当前屏幕宽度(分辨率值)
window.screen.height 返回当前屏幕高度(分辨率值)
window.document.body.offsetHeight; 返回当前网页高度
window.document.body.offsetWidth; 返回当前网页宽度
相关文章推荐
- js得到屏幕宽高、页面宽高 (window.screen.availHeight)
- js得到屏幕宽高、页面宽高 (window.screen.availHeight)等
- js得到屏幕宽高、页面宽高 (window.screen.availHeight)等
- js得到屏幕宽高、页面宽高等
- JS-得到屏幕宽高、页面宽高
- JavaScript得到屏幕宽高、页面宽高
- JS得到页面及屏幕的高度宽度
- js获取宽度 ,各种高度宽度document.body.clientWidth , document.body.clientHeight,window.screen.width 等等
- js得到当前屏幕长宽与页面html长度
- javascript中使用browser对象得到屏幕宽高,位深度以及页面的起始坐标和页面宽高
- 关于js获取屏幕高度和宽度( window.document.body,window.screen)(PC端和移动端)
- JavaScript基础 获取屏幕的有效高度(不含任务栏的高度) screen.availHeight
- JavaScript基础 获取屏幕的有效高度(不含任务栏的高度) screen.availHeight
- 【浏览器】screen.width/height 屏幕宽高(屏幕像素) ---- 定值
- js获取宽度 ,各种高度宽度document.body.clientWidth , document.body.clientHeight,window.screen.width 等等
- js获取页面宽度高度及屏幕分辨率
- (js)用window.onload实现刷新页面的导航栏状态的切换
- 打印页面的一部分 asp c# asp.net js window.open
- JS 得到 IE 的 宽 width 高 height
- JS 用window.open()函数,打开的新页面回调父级页面的函数