Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS:CSS 样式隔离怎么实现? #59

Open
HCLacids opened this issue Mar 16, 2022 · 0 comments
Open

CSS:CSS 样式隔离怎么实现? #59

HCLacids opened this issue Mar 16, 2022 · 0 comments
Labels

Comments

@HCLacids
Copy link
Owner

参考链接
总体来说CSS样式隔离解决的问题就是CSS在选择器上会重复而产生覆盖。我们解决办法是加上不同的prefix来进行隔离。
文章提到了两种,CSS Module和CSS in JS两种方法。
pic

@HCLacids HCLacids added the CSS label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant