例:
实现代码如下:
<html>
<body>
<input type="button" value="Test" onclick="showMessage()">
</body>
<script lang="javascript">
function showMessage(){
alert(window.screen.Height);
}
</script>
</html>
解决方法:不区分大小写直接替换所有html、js和jsp文件即可。
INS系统中已知需要替换的属性列表:
window.screen.height (误写为window.screen.Height)
window.screen.width (误写为window.screen.Width)
以上就是【IE8 兼容性问题(属性名区分大小写)】的全部内容了,欢迎留言评论进行交流!