是否可以在不使用背景图像的情况下使用css实现此模式?
答案 0 :(得分:1)
.button_example{
border:1px solid #cacaca; -webkit-border-radius: 50px; -moz-border-radius: 50px;border-radius: 50px;font-size:57px;font-family:arial, helvetica, sans-serif; padding: 10px 10px 10px 10px; text-decoration:none; display:inline-block;text-shadow: -1px -1px 0 rgba(0,0,0,0.3);font-weight:bold; color: #FFFFFF;
background-color: #E6E6E6; background-image: -webkit-gradient(linear, left top, left bottom, from(#E6E6E6), to(#CCCCCC));
background-image: -webkit-linear-gradient(top, #E6E6E6, #CCCCCC);
background-image: -moz-linear-gradient(top, #E6E6E6, #CCCCCC);
background-image: -ms-linear-gradient(top, #E6E6E6, #CCCCCC);
background-image: -o-linear-gradient(top, #E6E6E6, #CCCCCC);
background-image: linear-gradient(to bottom, #E6E6E6, #CCCCCC);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#E6E6E6, endColorstr=#CCCCCC);
}