<body onload="Init()">
<Img src="" id="ImgID">
<script>
function Init()
{
ImgID.style.width=window.screen.width;
ImgID.style.height=window.screen.height;
}
</script>
<body>
<Img src="" id="ImgID">
<script>
function Init()
{
ImgID.style.width=window.screen.width;
ImgID.style.height=window.screen.height;
}
</script>
<body>
解决方案 »
- js中加按钮,初学求教!
- js 中,有两个obj对象,obj1,obj2,行数是一样的都是10个,列数不同
- 还是 部分图片不显示,刷新后又显示 的问题,再一贴,望能遇到高人
- Ext3.0培训
- mztreeview1.0中怎么样收缩已展开的节点?
- firefox下的iframe中的flash显示问题
- 疑问请教
- 帮忙合并一JavaScript功能
- help!!!!
- WinMe下怎样调试CGI?(急)
- 如何禁止输入英文的“,”或者将输入的英文的“,”变成中文的“,”
- 用window.open来下在一个txt文件,怎么每次都会把这个文件打开阿?我要的是弹出保存框。大家帮帮忙,我整了很久了没搞定。多谢。
<body><script>
var strInfo="";
strInfo+="\r\n网页可见区域宽:"+document.body.clientWidth;
strInfo+="\r\n网页可见区域高:"+document.body.clientHeight;
strInfo+="\r\n网页可见区域宽:"+document.body.offsetWidth+"(包括边线的宽)";
strInfo+="\r\n网页可见区域高:"+document.body.offsetHeight+"(包括边线的宽)";
strInfo+="\r\n网页正文全文宽:"+document.body.scrollWidth;
strInfo+="\r\n网页正文全文高:"+document.body.scrollHeight;
strInfo+="\r\n网页被卷去的高:"+document.body.scrollTop;
strInfo+="\r\n网页被卷去的左:"+document.body.scrollLeft;
strInfo+="\r\n网页正文部分上:"+window.screenTop;
strInfo+="\r\n网页正文部分左:"+window.screenLeft;
strInfo+="\r\n屏幕分辨率的高:"+window.screen.height;
strInfo+="\r\n屏幕分辨率的宽:"+window.screen.width;
strInfo+="\r\n屏幕可用工作区高度:"+window.screen.availHeight;
strInfo+="\r\n屏幕可用工作区宽度:"+window.screen.availWidth;
window.confirm(strInfo);
</script>