阅读背景:

如何以编程方式更改CSS以限制其范围?

来源:互联网 

I've got a chunk of CSS as a string, and I want to insert it into the DOM such that it only applies to elements in a particular container. Some tools, like Polymer, for example, rewrite CSS selectors so they only apply within a limited scope. How can I do something similar so that, when I insert this CSS into the DOM, it won't change all elements on the page?I've got a chunk of CSS as a string, and I want




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: