admin管理员组文章数量:1321066
When importing CSS3Pie, I'm getting the following error.
Uncaught TypeError: Object [object DOMWindow] has no method 'attachEvent'
I am using Chrome. Is this possibly something I have caused, or just a bug. Thanks!
When importing CSS3Pie, I'm getting the following error.
Uncaught TypeError: Object [object DOMWindow] has no method 'attachEvent'
I am using Chrome. Is this possibly something I have caused, or just a bug. Thanks!
Share Improve this question asked Dec 12, 2010 at 17:27 Shane ReustleShane Reustle 8,9528 gold badges43 silver badges52 bronze badges 4- 1 Why would you be using CSS3Pie in Chrome? – Pointy Commented Dec 12, 2010 at 17:33
- @ken Using Head.JS @pointy Because Chrome isn't the only browser that will see this page – Shane Reustle Commented Dec 12, 2010 at 17:34
- ??? PIE is only useful in Internet Explorer. – Pointy Commented Dec 12, 2010 at 17:38
- @pointy Yes, but I still need to import it, unless I want to make every single rounded corners call in javascript inside a conditional script. – Shane Reustle Commented Dec 12, 2010 at 17:44
1 Answer
Reset to default 9I think you should be importing the "PIE.js" file in an IE-only conditional ment:
<!--[if IE]>
<script src='PIE.js'></script>
<![endif]-->
The CSS3Pie project is an Internet Explorer facility - it only works on IE, and is pletely useless for all other browsers.
edit — note that this is if you're importing the stuff as a .js file in the first place. As far as I can tell, the CSS3Pie docs all encourage the functionality to be imported via the IE "behavior" CSS attribute. That attribute will just be ignored by Chrome and Firefox and Safari and everything else that's not IE.
本文标签: javascriptCSS3Pie causing startup errorStack Overflow
版权声明:本文标题:javascript - CSS3Pie causing startup error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742091440a2420290.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论