一个css3按钮练习

RunJS地址:http://runjs.cn/detail/vnhi5yuw

在本次的练习中,css分析如下

.button{
    text-transform:uppercase;//转为大写
    text-align:center;//文字水平垂直居中
        line-height:37px;
    vertical-align:middle;
    font-family:Arial;//字体
    -webkit-text-stroke:1px #444;//字体镂空
    
    height:35px;
    width:140px;
    background-color:#888;

    background:linear-gradient(#aaa,#888,#aaa);//渐变
    box-shadow:0 0 5px black;//div阴影
    border-radius:10px;//div圆角
}    

 

posted @ 2016-07-19 11:41  bokeyuan990  阅读(144)  评论(0)    收藏  举报