CSS CSS3 - Fancy Nice酷Web2.0 ZURB超级棒的CSS3和RGBA按钮
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS CSS3 - Fancy Nice酷Web2.0 ZURB超级棒的CSS3和RGBA按钮相关的知识,希望对你有一定的参考价值。
/* @group ZURB Awesome Buttons */
/*
* 201008201230 - brandonjp
*
* Adapted from http://bit.ly/zurb-buttons
* Demo at http://bit.ly/zurb-buttons-demo
*
* USAGE: Give your element class "button" or use the HTML5 <button>
*
*/
.button, .button:visited, button, button:visited {
cursor: pointer;
position: relative;
display: inline-block;
padding: 5px 10px 6px;
color: #fff;
line-height: 1;
font-weight: bold;
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
text-decoration: none;
background: #222 url(images/alert-overlay.png) repeat-x;
border-bottom: 1px solid rgba(0,0,0,0.25);
border-radius: 5px;
-khtml-border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-khtml-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.button:hover, button:hover {
background-color: #111;
color: #fff;
}
.button:active, button:active {
top: 1px;
}
.small.button, .small.button:visited,
button.small, button.small:visited {
font-size: 11px;
}
.button, .button:visited, button, button:visited,
.medium.button, .medium.button:visited,
button.medium, button.medium:visited {
font-size: 13px;
}
.large.button, .large.button:visited,
button.large, button.large:visited {
font-size: 14px;
padding: 8px 14px 9px;
}
.green.button, .green.button:visited,
button.green, button.green:visited {
background-color: #91bd09;
}
.green.button:hover,
button.green:hover {
background-color: #749a02;
}
.blue.button, .blue.button:visited,
button.blue, button.blue:visited {
background-color: #2daebf;
}
.blue.button:hover,
button.blue:hover {
background-color: #007d9a;
}
.red.button, .red.button:visited,
button.red, button.red:visited {
background-color: #e33100;
}
.red.button:hover,
button.red:hover {
background-color: #872300;
}
.magenta.button, .magenta.button:visited,
button.magenta, button.magenta:visited {
background-color: #a9014b;
}
.magenta.button:hover,
button.magenta:hover {
background-color: #630030;
}
.orange.button, .orange.button:visited,
button.orange, button.orange:visited {
background-color: #ff5c00;
}
.orange.button:hover,
button.orange:hover {
background-color: #d45500;
}
.yellow.button, .yellow.button:visited,
button.yellow, button.yellow:visited {
background-color: #ffb515;
}
.yellow.button:hover,
button.yellow:hover {
background-color: #fc9200;
}
/* @end ZURB Awesome Buttons */
以上是关于CSS CSS3 - Fancy Nice酷Web2.0 ZURB超级棒的CSS3和RGBA按钮的主要内容,如果未能解决你的问题,请参考以下文章
CSS3——过渡与动画(实现炫酷下拉)
CSS3进阶酷炫的3D旋转透视
CSS3炫酷效果-音符在跳动
分享酷炫的 CSS3 技巧的地方 [关闭]
CSS3热身实战--过渡与动画(实现炫酷下拉,手风琴,无缝滚动)
css3制作酷炫的相册集动画