.greenbutton {
font-family:"Helvetica";
font-size:28px;
font-weight:normal;
line-height:130%;
color:rgb(255,255,255);
font-weight:300;
height:100%;
text-decoration:none;
padding-left:40px;
padding-right:40px;
padding-top:3px;
padding-bottom:3px;
text-align: center;
margin-top:25px;
border-top-width:1px;
border-top-color:#999999;
border-top-style:solid;
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0%, rgba(6,171,151,1)),
color-stop(60%, rgba(6,171,151,1)),
color-stop(61%, rgba(120,212,205,1)),
color-stop(100%, rgba(120,212,205,1))
);
-webkit-border-radius:15px ;
}
.greenbuttonholder{
width:140px;
height:50px;
padding-top:25px;
position:relative;
margin:auto;
}
此按钮仅适用于 Google Chrome,但不适用于 Firefox。
顺便说一下,对于那些想要在这里做一些实验的人来说,jsfiddle 链接是:http: //jsfiddle.net/M5Bzn/
我唯一尝试过的是将 -moz- 添加到所有行中,但这显然不起作用:P