Back to home
五款CSS3精美按钮效果代码(带阴影效果)
2014-08-18 08:13:26 -0400
代码说明
CSS3按钮特效,一些超精美的CSS3按钮特效,带阴影,颜色各不相同,转自笑忘书网盘
HTML代码
Click Me
代码演示
Click Me
HTML代码
.btn02{position: relative;font-weight:bold;width:124px;height: 44px;border-radius: 3px;border: 1px solid #c0c0c0;} .btn02:before, .btn02:after{ position: absolute; content: ""; height: 50%; border-radius: 50%; z-index: -1; } .btn02:before { width: 90%; left: 5%; top:12%; box-shadow: 0 -7px 4px rgba(0,0,0,0.3); } .btn02:active:before { width: 90%; left: 5%; top:12%; box-shadow: 0 0 2px rgba(0,0,0,0.3); } .btn02:after { width: 80%; left: 10%; bottom: 9%; box-shadow: 0 7px 4px rgba(0,0,0,0.4); } .btn02:active:after { width: 80%; left: 10%; bottom: 9%; box-shadow: 0 0 0 rgba(0,0,0,0.4); } .btn02{ color: #7f7f7f; border-color: #c8c8c8; box-shadow:inset 0 1px 0 #e0e0e0,0 1px 0 rgba(0,0,0,.2); background:-webkit-linear-gradient(top,#d7d7d7,#b7b7b7); background:-moz-linear-gradient(top,#d7d7d7,#b7b7b7); background:-o-linear-gradient(top,#d7d7d7,#b7b7b7); background:-ms-linear-gradient(top,#d7d7d7,#b7b7b7); background:linear-gradient(top,#d7d7d7,#b7b7b7); } .btn02:hover{ background:-webkit-linear-gradient(top,#e3e3e3,#c2c0c0); background:-moz-linear-gradient(top,#e3e3e3,#c2c0c0); background:-o-linear-gradient(top,#e3e3e3,#c2c0c0); background:-ms-linear-gradient(top,#e3e3e3,#c2c0c0); background:linear-gradient(top,#e3e3e3,#c2c0c0); } .btn02:active{ top:4px; box-shadow:inset 0 1px 3px #555; background:-webkit-linear-gradient(top,#a2a2a2,#a2a2a2); background:-moz-linear-gradient(top,#a2a2a2,#a2a2a2); background:-ms-linear-gradient(top,#a2a2a2,#a2a2a2); background:-o-linear-gradient(top,#a2a2a2,#a2a2a2); background:linear-gradient(top,#a2a2a2,#a2a2a2); }
Click Me
>
代码演示
Click Me
HTML代码
Click Me
代码演示
Click Me
HTML代码
Click Me
代码演示
Click Me
HTML代码
Click Me
代码演示
Click Me
«Newer
Older»
Comment:
Name:
Back to home
Subscribe
|
Register
|
Login
|
N