首页 > 其他 > 详细

鼠标经过按钮,背景颜色出现渐变的效果

时间:2016-12-30 18:46:53      阅读:195      评论:0      收藏:0      [点我收藏+]
<style type="text/css">
    .btn{
        padding:15px 40px;
        background: red;
        border-style: none;
        color:white;
        font-size: 16px;
        cursor: pointer;
        transition: all 1s ease 0s;
        -o-transition: all 1s ease 0s;
        -moz-transition: all 1s ease 0s;
        -webkit-transition: all 1s ease 0s;
    }
    .btn:hover{
        background: blue
    }
</style>
<button type="button" class="btn">鼠标经过</button>

 

鼠标经过按钮,背景颜色出现渐变的效果

原文:http://www.cnblogs.com/fkcqwq/p/6237531.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!