How to read cross-origin CSS rules with JavaScript?

前端 未结 0 1460
旧巷少年郎
旧巷少年郎 2021-02-10 05:45

I am trying to use document.styleSheets[i].cssRules in the JavaScript console to read loaded CSS files of a tab. However, more often than not, I get the error:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题