在分辨率为124*768下测试通过:
<body>
<script>
alert(document.body.offsetWidth+','+document.body.offsetHeight);
window.open('1.htm','','width='+(parseInt(document.body.clientWidth)+20)+',height='+(parseInt(document.body.clientHeight)+94))
</script>
</body>
<body>
<script>
alert(document.body.offsetWidth+','+document.body.offsetHeight);
window.open('1.htm','','width='+(parseInt(document.body.clientWidth)+20)+',height='+(parseInt(document.body.clientHeight)+94))
</script>
</body>
解决方案 »
- JS如何删除JSON数据中,满足条件的记录?
- 求救!!api百度地图,自定义公车面板的用法
- 如何将2个javascript脚本在一个页面同时显示
- 这个正则表达式怎么就不起作用呢?
- javascript 奇偶那个
- 纵向和横向都只能选择一个
- 如何在客户端用javaScript把一个Excel文件解析成xml格式?
- 如何用jquery获取input和select和textarea元素
- 一个关于table显示的问题
- 高手请进:AAA.ascx中的onClick 可以更改BBB.ascx中DataGrid的DataSource吗???
- FireFox和IE中的JS问题!
- javascript取得某一目录下的文件列表?
1024*768分辨率下通过:
<body>
<script>
window.open('1.htm','','width='+(parseInt(document.body.clientWidth)+20)+',height='+(parseInt(document.body.clientHeight)+94))
</script>
</body>
<input type=button onclick="open1();" value="open1">
<script type="text/javascript">
function open1(){
document.getElementById("if1").style.display='';
document.getElementById("if1").style.height=document.getElementById("if1").Document.body.scrollHeight;
document.getElementById("if1").style.width=document.getElementById("if1").Document.body.scrollWidth;
var height=document.getElementById("if1").style.height;
var width=document.getElementById("if1").style.width;
window.open('1.htm','','width='+width+',height='+height);
document.getElementById("if1").style.display='none';
}
</script>
http://www.txsec.com/f10/f10-dmcx.asp?flag=2&type1=f10-2.asp&code=jt
点查看更名详情