cannot access rules in external CSSStyleSheet

前端 未结 1 960
终归单人心
终归单人心 2021-01-04 01:07

I am having trouble figuring out why .cssRules and .rules won\'t work in my simplistic color generator project.

I have a <

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 01:52

    As of Chrome 64, new CORS rules are enforced for stylesheets. You'll need to use a local development server to do local testing of functionality that depends on the CSS Object Model. For details, see Cannot access cssRules from local css file in Chrome.

    0 讨论(0)
提交回复
热议问题