从左到右的渐变兼容性写法

/从左到右渐变/
.color{
background: -webkit-linear-gradient(left,#ff9000,#ff5000) no-repeat;/* Safari 5.1 - 6.0 /
background: -o-linear-gradient(right,#ff9000,#ff5000) no-repeat; /
Opera 11.1 - 12.0 /
background: -moz-linear-gradient(right,#ff9000,#ff5000) no-repeat; /
Firefox 3.6 - 15 /
background: linear-gradient(to right,#ff9000,#ff5000) no-repeat; /
标准的语法(必须放在最后) */
}

详见:菜鸟教程http://www.runoob.com/css3/css3-gradients.html

你可能感兴趣的:(从左到右的渐变兼容性写法)