线性渐变兼容性代码

.gradient {
    background: rgba(236,101,33,1);
    background: -moz-linear-gradient(90deg,rgba(236,101,33,1) 0,rgba(212,132,91,1) 100%);
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(236,101,33,1)),color-stop(100%,rgba(212,132,91,1)));
    background: -webkit-linear-gradient(90deg,rgba(236,101,33,1) 0,rgba(212,132,91,1) 100%);
    background: -o-linear-gradient(90deg,rgba(236,101,33,1) 0,rgba(212,132,91,1) 100%);
    background: -ms-linear-gradient(90deg,rgba(236,101,33,1) 0,rgba(212,132,91,1) 100%);
    background: linear-gradient(180deg,rgba(236,101,33,1) 0,rgba(212,132,91,1) 100%);
}
原文地址:https://www.cnblogs.com/xiaohaifengke/p/7274571.html