[英]How can I set all text color in react components?
I have multiple components in react project and What I'm trying to do is set all the text on the page to white.我在反应项目中有多个组件,我想要做的是将页面上的所有文本设置为白色。
This is the index.css file:这是 index.css 文件:
:root {
color: white !important;
}
But it's not working so How can I set every text rendered on the page to white?但它不起作用所以如何将页面上呈现的每个文本设置为白色?
*{
color: white !important;
}
Try this one.试试这个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.