实现800*600,1024*768两套分辨率方案
生活随笔
收集整理的這篇文章主要介紹了
实现800*600,1024*768两套分辨率方案
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
下面這段代碼,可以實現800*600,1024*768兩套分辨率方案。
<html>
<head>
<title>Untitled Document</title>
<script language="javascript">
function go(){
var myWidth=screen.width
if (myWidth>800){
window.location.replace("1024.htm")
}
else{
window.location.replace("800.htm")
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body onLoad="go()" topmargin="0" leftmargin="0">
</body>
</html>
總結
以上是生活随笔為你收集整理的实现800*600,1024*768两套分辨率方案的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: input type右对齐与只读的
- 下一篇: 电脑人会得哪些病----------关注