以这个效果为例:这是一个从 #dc6226 渐变到 #535e64
在Mozilla 、Webkit、 Opera 下的使用方式
background: -moz-linear-gradient(left,#dc6226,#535e64); background: -webkit-linear-gradient(left,#dc6226,#535e64); background: -o-linear-gradient(left,#dc6226,#535e64);在IE的使用方式:
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#dc6226, endColorstr=#535e64);/*IE<9>*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#dc6226, endColorstr=#535e64)";/*IE8+*/