答案 0 :(得分:3)
<强> CODE 强>:
<a class="button" href="#">KABLAM</a>
您的css端口button:active
仅适用于active
标记的button
状态。您的active
代码或a
类没有定义button
属性。您应该将定义定义为a:active
或.button:active
。
button:active, a:active{
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #2E9185),
color-stop(1, #00FFE6)
);
background-image: -o-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: -moz-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: -webkit-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: -ms-linear-gradient(bottom, #2E9185 0%, #00FFE6 100%);
background-image: linear-gradient(to bottom, #2E9185 0%, #00FFE6 100%);
}
现在这看起来工作正常