<script language=javascript>
window.resizeTo(320,300);
window.moveTo((window.screen.availWidth-320)/2,(window.screen.availHeight-300)/2);</script>另:
打开窗口的大小 等于 上次关闭窗口的大小
window.resizeTo(320,300);
window.moveTo((window.screen.availWidth-320)/2,(window.screen.availHeight-300)/2);</script>另:
打开窗口的大小 等于 上次关闭窗口的大小
<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="stylesheet" type="text/css" href="/style/default.css" />
<style type="text/css">
<!--
-->
</style>
<script language="JavaScript" src="/Script/Default.js"></script>
<script language="JavaScript">
<!--
function zoomIt(){
document.body.style.zoom=0.5;
}
-->
</script>
<title></title>
</head>
<body>
<button onclick="javaScript:zoomIt();">测试一下</button>
</body>
</html>