Firefox not able to enumerate document.styleSheets[].cssRules[]

后端 未结 7 1780
-上瘾入骨i
-上瘾入骨i 2020-12-16 15:33

Here is the code:

  • http://jsfiddle.net/salman/2hyYg/
  • http://jsfiddle.net/salman/2hyYg/show/

You\'ll notice the alert(document.styl

7条回答
  •  庸人自扰
    2020-12-16 16:14

    You are loading css-files from another domain, I guess that you are not allowed to modify cssRules for externally loaded css files.

    see this: Accessing cross-domain style sheet with .cssRules

提交回复
热议问题