问题遇到的现象和发生背景
一个注册按钮css字体颜色样式无效,如图:
css定义了字体颜色(白色),但字体颜色还是显示灰色
问题相关代码(前端)
<a class="home-register" href="<?php $this->options->adminUrl('register.php'); ?>" target="_blank" rel="noopener noreferrer nofollow">注册</a>
问题相关代码(css)
/*注册按钮样式*/
.home-register {
background-color:#1e80ff;
border-radius:3px;
color:#fff;
flex-shrink:0;
font-size:14px;
height:30px;
line-height:30px;
margin-left:14px;
text-align:center;
text-decoration:none;
transition:width .2s,margin-left .3s,background-color .3s;width:72px
}
我想要达到的结果
求解需要使用什么属性和样式才能使按钮里面的字体变成白色