该脚本在IE中不起作用.我该如何解决? [英] The script does not work in IE. How can I fix it?

查看:43
本文介绍了该脚本在IE中不起作用.我该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个脚本可以根据用户的监视器屏幕分辨率更改页面模板.但是,它在IE中不起作用.请提出如何解决的建议.

There is a script that changes the page template depending on the user's monitor screen resolution. However, it does not work in IE. Advise how to fix it, please.

<body>
<table id="mt" align="center" >
<tr>
<td colspan=3 id=top>{{head}}</td></tr><tr><td id=t1>&nbsp;</td><td id=t3>&nbsp;</td><td id=t2>&nbsp;</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支持

推荐答案

outerWidth ,但从IE9开始支持.

outerWidth is supported by IE, but since from the IE9.

替换

这篇关于该脚本在IE中不起作用.我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆