简体   繁体   English

如何在Semantic UI垂直菜单中更改文本颜色?

[英]How can I change text color in a Semantic UI vertical menu?

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. 我试图将它包装在一个段落元素中,但这只会使重新定位变得困难。

在此输入图像描述

you can use this: class="ui red header" 你可以使用这个: class =“ui red header”

http://semantic-ui.com/elements/header.html#colors http://semantic-ui.com/elements/header.html#colors

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;
    ...
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM