Html 如何更改语义 UI 垂直菜单中的文本颜色?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28486780/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I change text color in a Semantic UI vertical menu?
提问by wsc
I have an active red link item in a vertical menu and I only want the pointer to be red. What is the most effective way to change the text so it is black? I have attempted to wrap it in a paragraph element but that only makes it difficult to reposition.
我在垂直菜单中有一个活动的红色链接项,我只希望指针为红色。将文本更改为黑色的最有效方法是什么?我试图将它包装在一个段落元素中,但这只会使重新定位变得困难。
回答by Morteza QorbanAlizade
you can use this: class="ui red header"
你可以使用这个:class="ui red header"
回答by Made_new_account
The code for that would look something like this
代码看起来像这样
<div class="ui vertical menu">
<a class="home">
HOME
</a>
</div>
Your css would have to look something like this with your desired color
你的 css 必须看起来像你想要的颜色
a.home {
color: red;
...
}