0
我似乎无法让我的按钮更改CSS3转换颜色。我已经成功地在标签上使用了相同的代码,但没有这个按钮。按钮上的CSS3颜色转换
下面的代码:
.button {
position:absolute;
width: 135px;
height: 46px;
background-color: #ef6529;
text-decoration: none;
border-radius: 4px;
-moz-border-radius: 4px;
border: 1px solid #c33b00;
box-shadow: 0px 4px 0px #af5a5a;
-moz-box-shadow: 0px 4px 0px #af5a5a;
-webkit-box-shadow: 0px 4px 0px #af5a5a;
-webkit-transition:color 1s ease-in;
-moz-transition:color 1s ease-in;
-o-transition:color 1s ease-in;
transition:color 1s ease-in;
}
.button:hover {
width: 135px;
height: 46px;
background-color: #ff6726;
border-radius: 4px;
-moz-border-radius: 4px;
border: 1px solid #c33b00;
text-decoration: none;
}
和HTML:
<a href="#" class="button">
<!--<h2>PUSH ME!</h2>-->
</a>
干杯!
你能发布你的html吗?将有助于看到标记 – 2013-03-17 15:31:26
对不起,忘了! – 2013-03-17 15:54:14