0
如何更改UIkit图标的颜色。我正在使用反应组件。 具体来说,我想改变分频器图标的颜色:https://getuikit.com/docs/divider在反应中更改UIkit图标的颜色
我已经试过大部分的回答这样一个问题:Can I change the color of Font Awesome's icon color? 没有一次成功。
我也尝试过它包裹在标签或
<i style={{color: 'rgba(0, 0, 0, 1)'}} className="uk-divider-icon"></i>
<div style={{color: 'rgba(0, 0, 0, 1)'}} className="uk-divider-icon"></div>
我想改变图标本身没有背景或其他CSS的颜色,因为这些都容易使用style
改变。
谢谢。