CSS CSS3玻璃按钮
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS CSS3玻璃按钮相关的知识,希望对你有一定的参考价值。
a.button {
font-family: 'PT Sans', arial, serif;
color:#ffffff;
text-align:center;
font-size:24px;
font-weight:bold;
padding:10px;
text-shadow: /* Simulating Text Stroke */
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
border: 1px solid rgba(0,0,0,0.5);
border-bottom: 3px solid rgba(0,0,0,0.5);
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background: rgba(0,0,0,0.25);
box-shadow:
0 2px 8px rgba(0,0,0,0.5), /* Exterior Shadow */
inset 0 1px rgba(255,255,255,0.3), /* Top light Line */
inset 0 10px rgba(255,255,255,0.2), /* Top Light Shadow */
inset 0 10px 20px rgba(255,255,255,0.25), /* Sides Light Shadow */
inset 0 -15px 30px rgba(0,0,0,0.3); /* Dark Background */
-o-box-shadow:
0 2px 8px rgba(0,0,0,0.5),
inset 0 1px rgba(255,255,255,0.3),
inset 0 10px rgba(255,255,255,0.2),
inset 0 10px 20px rgba(255,255,255,0.25),
inset 0 -15px 30px rgba(0,0,0,0.3);
-webkit-box-shadow:
0 2px 8px rgba(0,0,0,0.5),
inset 0 1px rgba(255,255,255,0.3),
inset 0 10px rgba(255,255,255,0.2),
inset 0 10px 20px rgba(255,255,255,0.25),
inset 0 -15px 30px rgba(0,0,0,0.3);
-moz-box-shadow:
0 2px 8px rgba(0,0,0,0.5),
inset 0 1px rgba(255,255,255,0.3),
inset 0 10px rgba(255,255,255,0.2),
inset 0 10px 20px rgba(255,255,255,0.25),
inset 0 -15px 30px rgba(0,0,0,0.3);
}
以上是关于CSS CSS3玻璃按钮的主要内容,如果未能解决你的问题,请参考以下文章
用 CSS3 制作导航条和毛玻璃效果
CSS3实现毛玻璃(图片模糊)效果
css3毛玻璃模糊效果
CSS3 之filter毛玻璃效果弹窗
转css3实现ios7“毛玻璃”模糊效果
css 玻璃按钮