<html>
<head>
<title>获得客户端分辩率,然后确定表格宽度</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<table width="800" align="center" border="1" style="display:none" id=table1>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
if ((screen.width == 800) && (screen.height == 600))
table1.width=800;
else if ((screen.width == 1024) && (screen.height == 768))
table1.width=1000;
table1.style.display="";
alert(table1.width)
//-->
</SCRIPT>
</body>
</html>
<head>
<title>获得客户端分辩率,然后确定表格宽度</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<table width="800" align="center" border="1" style="display:none" id=table1>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
if ((screen.width == 800) && (screen.height == 600))
table1.width=800;
else if ((screen.width == 1024) && (screen.height == 768))
table1.width=1000;
table1.style.display="";
alert(table1.width)
//-->
</SCRIPT>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货