有一个脚本根据用户的显示器屏幕分辨率更改页面模板。但是,它在IE中不起作用。请告诉我如何解决这个问题。该脚本在IE中不起作用。我该如何解决它?
<body>
<table id="mt" align="center" >
<tr>
<td colspan=3 id=top>{{head}}</td></tr><tr><td id=t1> </td><td id=t3> </td><td id=t2> </td></tr><tr>
<td id=1eft valign=top>{{left}}</td>
<td id=content><h1>[*pagetitle*]</h1>[*content*]</td>
<td id=right>{{right}}</td></tr>
<tr><td id=ft colspan=3>{{foot}}</td></tr>
</table><script>if (window.outerWidth>1440) {a='1440px';} else {a='auto';}document.getElementById("mt").style.width = a;</script></body>
* “的脚本不能在IE浏览器。” * ** **如何它不工作? IE上会发生什么?没有?模板的大小错误?您在脚本控制台中看到错误消息? *(提示)*一切都变成了一个可爱的fucshia阴影? ;-) – 2011-05-10 18:37:37
__ [IE8] __'alert(window.outerWidth);'< - 返回undefined。 – 2011-05-10 18:42:43
>> [IE8] alert(window.outerWidth); < - 返回undefined。我怎样才能取代IE的window.outerWidth? – Astraport 2011-05-10 18:56:52