我正在为IE6使用Dean Edwards' IE7.js
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js"
type="text/javascript"></script>
<![endif]-->并在IE 6上读取行时出现JavaScript错误:
c.runtimeStyle[h]=c.parentElement.currentStyle[h]我该如何解决这个问题呢?
发布于 2009-11-21 12:55:51
我不相信IE6有parentElement属性。您可以通过在<!--[if lt ie7]>标记中包含以下代码来解决此问题:
Element.prototype.parentElement = Element.prototype.parentNode;https://stackoverflow.com/questions/1774519
复制相似问题