Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<html>
<head>
<title>自动根据分辨率进入不同页面</title>
<body>
<script LANGUAGE="JavaScript">
function redirectPage() {
var url800x600 = "http://www.sohu.com";
var url1024x768 = "/";
var url1280x1024 = "http://www.baidu.com";
var url1440x900 = "http://www.163.com";
if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height ==768))
window.location.href= url1024x768;
else if ((screen.width == 1280) && (screen.height == 1024))
window.location.href= url1280x1024;
else window.location.href= url1440x900;
}
</script>
</head>
<form>
<input type=button value="点击自动进入对应页面" onClick="redirectPage()">
</form>
</body>
</html>
CSS代码...
JS代码...
xxxxxxxxxx