zoukankan      html  css  js  c++  java
  • 线性渐变css

    从上到下的线性渐变:

    #grad {
       background: -webkit-linear-gradient(red, blue); /* Safari 5.1 - 6.0 */   
       background: -o-linear-gradient(red, blue); /* Opera 11.1 - 12.0 */   
       background: -moz-linear-gradient(red, blue); /* Firefox 3.6 - 15 */  
       background: linear-gradient(red, blue); /* 标准的语法 */ 
    }

    从左到右的线性渐变:

    #grad {
       background: -webkit-linear-gradient(left, red , blue); /* Safari 5.1 - 6.0 */   
       background: -o-linear-gradient(right, red, blue); /* Opera 11.1 - 12.0 */   
       background: -moz-linear-gradient(right, red, blue); /* Firefox 3.6 - 15 */   
       background: linear-gradient(to right, red , blue); /* 标准的语法 */ 
    }

    颜色不均匀分布的线性渐变:

    #grad {   
        background: -webkit-radial-gradient(red 5%, green); /* Safari 5.1 - 6.0 */   
        background: -o-radial-gradient(red 5%, green); /* Opera 11.6 - 12.0 */   
        background: -moz-radial-gradient(red 5%, green); /* Firefox 3.6 - 15 */   
        background: radial-gradient(red 5%, green); /* 标准的语法 */ 
    }
  • 相关阅读:
    NOIP2018 游记
    HDU1556 敌兵布阵
    BZOJ 1032 [JSOI2007]祖码Zuma
    BZOJ 1068 [SCOI2007]压缩
    BZOJ 1090 [SCOI2003]字符串折叠
    BZOJ 1260 [CQOI2007]涂色paint
    BZOJ 1055 [HAOI2008]玩具取名
    HDU 5151 Sit sit sit
    HDU 4283 You Are the One
    vue系列8:webpack
  • 原文地址:https://www.cnblogs.com/pengxiangchong/p/11654326.html
Copyright © 2011-2022 走看看