, .
- jQuery 1.10.4 ( ).
- It supports: freezing and: active effects, so that the same effects can be achieved without javascript
Opaque Background:
http://jsfiddle.net/spinal007/FntBG/
.button{
cursor:pointer;
display:inline-block;
line-height:1.4;
margin: 0 0.1em 0 0;
padding: 0.3em 1em 0.4em;
border: 1px solid #ccc;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 0 1px #FFF inset;
-moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 0 1px #FFFFFF inset;
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 0 1px #FFF inset;
color: #666;
background: #EFEFEF;
text-decoration: none;
text-align: center;
font-family: Segoe UI, Trebuchet MS, Tahoma, Arial, sans-serif;
font-size:1.1em;
}
.button:hover{
background-color:#f9f9f9;
border-color:#999999;
color: #212121;
}
.button:active{
background-color:#71B800;
border-color:#64A300;
color: #ffffff;
}
And here is an alternative with CSS3 Gradient Background:
http://jsfiddle.net/spinal007/pVVs3/
(you may need this, depending on your theme!)
source
share