今天分享下用CSS3来制作一个圆角阴影、渐变色的漂亮的按钮。
淘建站为您提供更多_css3_按钮_css3_按钮,在此特别感谢您对我们的支持与厚爱!
演示不了,点击反馈
下载 278 次
觉得不错,可打赏下作者
免费共享
CSS
.button{display: inline-block; outline: none; cursor: pointer; text-align: center; text-decoration: none; font: 16px/100% 'Microsoft yahei',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;}HTML
<div class="demo">
<a href="#" class="button green">绿色</a>
<a href="#" class="button green bigrounded">Rounded</a>
<a href="#" class="button green medium">Medium</a>
<a href="#" class="button green small">Small</a>
<input class="button green" type="button" value="Input Element" />
<button class="button green">Button Tag</button>
</div>

