最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vscode中为什么放进去图片未显示_为什么下面代码在本课程里能看到效果,在vscode里选择浏览器打开看不到?...

运维笔记admin6浏览0评论
屏幕分辨率的高和宽

var s ="网页可见区域宽:"+ document.body.clientWidth;

s+="\r\n网页可见区域高:"+ document.body.clientHeight;

s += "\r\n网页正文全文宽:"+ document.body.scrollWidth;

s += "\r\n网页正文全文高:"+ document.body.scrollHeight;

s += "\r\n网页正文部分上:"+ window.screenTop;

s += "\r\n网页正文部分左:"+ window.screenLeft;

s += "\r\n屏幕分辨率的高:"+ window.screen.height;

s += "\r\n屏幕分辨率的宽:"+ window.screen.width;

s +="\r\n屏幕可用工作区高度:"+ window.screen.availHeight;

s +="\r\n屏幕可用工作区宽度:"+ window.screen.availWidth;

alert(s);

document.write(s) ;

发布评论

评论列表(0)

  1. 暂无评论