?? 20.6 檢測屏幕分辨率.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標題頁</title>
<script language="JavaScript">
function getScreen()
{
if ((screen.width == 640) && (screen.height == 480))
size = "640 x 480";
else if ((screen.width == 800) && (screen.height == 600))
size = "800 x 600";
else if ((screen.width == 1024) && (screen.height == 768))
size = "1024 x 768";
else if ((screen.width == 1280) && (screen.height == 1024))
size = "1280x1024";
else
size = "默認值為640 x 480";
alert("屏幕分辨率為 " + size );
}
</script>
</head>
<body>
<input id="Button1" type="button" value="獲取屏幕分辨率" onclick="getScreen()" />
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -