尝试添加
在选择器中添加标签,以避免与站点中的其他CSS冲突:
a.button {
border: 0px solid #011f4b;
background: #011f4b;
padding: 3px 21px;
-webkit-border-radius: 16px;
-moz-border-radius: 16px;
border-radius: 16px;
color: #ffffff;
font-size: 12px;
font-family: Questrial;
text-decoration: none;
vertical-align: middle;
letter-spacing: 2px;
}
a.button:hover {
border: 0px solid #1292e1;
background: #1292e1;
color: white;
}
a.button:active {
background: #1292e1;
color: #fff;
}
<a href='#' class='button'>Login</a>
您也可以考虑
!重要的
要强制保持白色,请执行以下操作:
a.button:hover {
border: 0px solid #1292e1;
background: #1292e1;
color: white!important;
}