您当前的位置: 首页 > 

壹小俊

暂无认证

  • 0浏览

    0关注

    885博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

第三课--渐变(Gradients)

壹小俊 发布时间:2019-08-15 10:43:38 ,浏览量:0

a.
线性
background: linear-gradient(to 方向,颜色,颜色);
可以定义一个角度,而不用预定义方向(to bottom、to top、to right、to left、to bottom right,等等)。

b.
圆性
background: radial-gradient(to 方向,颜色,颜色);



    
    渐变(Gradients)


    div{
        width: 1504px;
        height: 710px;
        /*background: linear-gradient(to right,red,orange,yellow,green,blue,greenyellow,magenta);!*从左到右*!*/
        /* background: linear-gradient(to bottom right,red,orange,yellow,green,blue,greenyellow,magenta);!*对角*!*/
        background: radial-gradient(red,orange,yellow,green,blue,greenyellow,magenta)
    }


 

关注
打赏
1664335782
查看更多评论
立即登录/注册

微信扫码登录

0.0385s