css2014-07-08 03:00:17 3192
body {
background: #0xffffff;
margin: 30px auto;
color: #999;
}
.button {
display: inline-block;
zoom: 1;
display: inline;
vertical-align: baseline;
margin: 0 2px;
outline: none;
cursor: pointer;
text-align: center;
text-decoration: none;
font: 14px/100% Arial, Helvetica, sans-serif;
padding: .5em 2em .55em;
text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
-webkit-border-radius: .5em;
-moz-border-radius: .5em;
border-radius: .5em;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.button:hover {
text-decoration: none;
}
.button:active {
position: relative;
top: 1px;
}
.bigrounded {
-webkit-border-radius: 2em;
-moz-border-radius: 2em;
border-radius: 2em;
}
.medium {
font-size: 12px;
padding: .4em 1.5em .42em;
}
.small {
font-size: 11px;
padding: .2em 1em .275em;
}
.red {
color: #ffffff;
border: solid 1px #ffffff;
background: #ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#ff9900), to(#ff4400)) !important;
}
.red:hover {
background-color:#ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#111), to(#222));
background: -moz-linear-gradient(top, #444, #000);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#efefef', endColorstr='#ffffff');
}
.green:active {
color: #ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#444));
background: -moz-linear-gradient(top, #000, #444);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#666666');
}
.green {
color: #ffffff;
border: solid 1px #ffffff;
background: #ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#444693), to(#2a5caa)) !important;
}
.green:hover {
background-color:#ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#111), to(#222));
background: -moz-linear-gradient(top, #444, #000);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#efefef', endColorstr='#ffffff');
}
.green:active {
color: #ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#444));
background: -moz-linear-gradient(top, #000, #444);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#666666');
}
.black {
color: #d7d7d7;
border: solid 1px #333;
background: #333;
background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#000));
background: -moz-linear-gradient(top, #666, #000);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#666666', endColorstr='#000000');
}
.black:hover {
background: #ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#000));
background: -moz-linear-gradient(top, #444, #000);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444444', endColorstr='#000000');
}
.black:active {
color: #ffffff;
background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#444));
background: -moz-linear-gradient(top, #000, #444);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#666666');
}
彭亚欧个人博客原创文章,转载请注明出处
文章关键词:CSS3按钮渐变 CSS3按钮美化 CSS按钮阴影
文章固定链接:https://www.pengyaou.com/legendsz/front/codecss/MTE=.html
上一篇 Jquery进度条插件
下一篇 javascript瀑布流算法