添加背景透明度过度

1 Obj.hover(function(){
2         
3         $(this).css({"background":"rgba(0,0,0,.2)"});
4         
5     },function(){
6         $(this).css({"background":"rgba(0,0,0,0)"});
7  
8     })
object{
    transition:all .5s;
                            
    background-color: rgba(#000,0);
}
posted @ 2017-04-25 15:49  为生活创造乐趣  阅读(202)  评论(0编辑  收藏  举报