你选择一个合适的宽度,比如1024,然后让页面中内容居中
解决方案 »
- IE6下出现的问题
- jQuery serializeArray()如何转换为字符串
- 页面上有10000多个input,如何快速找到所有的checkbox
- 求此日历代码,显示效果如:www.ylmf.com/index.htm或者http://www.nongli.com/todaylhl.htm
- 求jsp酒店管理系统的网上房间预订和退房折扣结算的完整代码!!
- 两个层重叠,如何移动下面的层
- 日期验证的问题,验证特定格式1982-09-15
- 在线等高手指教
- 如何判断父框架是否存在?
- 怎样判断某个input不存在?
- ●●●●●●●●●●●●这个方法好像没有用啊?????????
- 请问 如何实现 网页加载完成后 立即显示 ext win ??
用javascript测试分辨率就行了
]
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "http://www.17357.net/640x480";**记得改相应的页面
var url800x600 = "http://www.17357.net/800x600";
var url1024x768 = "http://www.17357.net/1024x768";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script> 以下代码加入<BODY>区:
<center>
<form>
<input type=button value="进入符合分辨率的页面" onClick="redirectPage()">
</form>
</center>