html5-css渐变应用小实例,按钮

.but1{
    padding: 10px 20px;
    font-size: 16px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
    border-radius: 20px;
    background: linear-gradient(to left,orange,red);
}
.but2{

}
.but3{
    
}
.but1:hover{
    background: orange;
    background: linear-gradient(to right,orange,red)
}

posted @ 2017-11-07 20:37  侯伟东  阅读(537)  评论(0编辑  收藏  举报