这是一个关于字体和css3属性的实验的结果,如文本阴影和盒阴影:
按钮被定义为链接元件,而css的外观如下所示:
.button{ padding:5px 15px 5px 15px; text-decoration: none; display: inline-block; -moz-border-radius: 10px; -webkit-border-radius: 10px; -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5); -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); border-bottom: 1px solid rgba(0,0,0,0.25); font-family: "Lucida Grande",Lucida,Verdana,sans-serif; outline:none; position:relative; font-size: 32px; margin:10px; background:transparent url(buttonover.png) repeat-x top left; white-space:nowrap; } .button:hover{ background-color: #777; } .button:active{ top: 1px; left:1px; }