css 如何写一个渐变效果

作者: 顽皮的大猩猩 | 来源:发表于2019-07-11 09:45 被阅读214次

    效果图

    主要css 

    .flex1{

      background: -webkit-linear-gradient(right,#BEB9F9,#66DEBA);

      background: -o-linear-gradient(right,#BEB9F9,#66DEBA);

      background: -moz-linear-gradient(right,#BEB9F9,#66DEBA);

      background: -mos-linear-gradient(right,#BEB9F9,#66DEBA);

      background: linear-gradient(right,#BEB9F9,#66DEBA);

    }

    .flex2{

      background: -webkit-linear-gradient(right,#BEB9F9,#FECF4B);

      background: -o-linear-gradient(right,#BEB9F9,#FECF4B);

      background: -moz-linear-gradient(right,#BEB9F9,#FECF4B);

      background: -mos-linear-gradient(right,#BEB9F9,#FECF4B);

      background: linear-gradient(right,#BEB9F9,#FECF4B);

    }

    .flex3{

      background: -webkit-linear-gradient(right,#BEB9F9,#FCA4B6);

      background: -o-linear-gradient(right,#BEB9F9,#FCA4B6);

      background: -moz-linear-gradient(right,#BEB9F9,#FCA4B6);

      background: -mos-linear-gradient(right,#BEB9F9,#FCA4B6);

      background: linear-gradient(right,#BEB9F9,#FCA4B6);

    }

    相关文章

      网友评论

        本文标题:css 如何写一个渐变效果

        本文链接:https://www.haomeiwen.com/subject/qntrkctx.html