协助你好难学习CSS的“边”和“內容”

日期:2021-03-16 类型:科技新闻 

关键词:怎么把小程序变成二维码,微信小程序怎么开通,微信小程序csdn,小程序开发,网络答题小程序


看完图下面是检测编码:
<html>
<head>
<title>jb51.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
</style>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
var s = "";
s = "\r\n网页页面可见地区宽:" document.body.clientWidth;
s = "\r\n网页页面可见地区高:" document.body.clientHeight;
s = "\r\n网页页面可见地区宽:" document.body.offsetWidth " (包含边线的宽)";
s = "\r\n网页页面可见地区高:" document.body.offsetHeight " (包含边线的宽)";
s = "\r\n网页页面文章正文全文宽:" document.body.scrollWidth;
s = "\r\n网页页面文章正文全文高:" document.body.scrollHeight;
s = "\r\n网页页面被卷去的高:" document.body.scrollTop;
s = "\r\n网页页面被卷去的左:" document.body.scrollLeft;
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);
</SCRIPT>
</body>
</html>