标签:
渐变:
backgroud:linear-gradient()
语法:linear-gradient(起点,开始颜色,结束颜色);
起点:top,right,bottom,left,top left,top right, bottom left,bottom right,
例:
.test{ background:-moz-linear-gradient(top,#fff,#000); background:-webkit-linear-gradient(top,#fff,#000); background:-ms-linear-gradient(top,#fff,#000); //IE9以上版本才支持; background:-o-linear-gradient(top,#fff,#000); background:linear-gradient(top,#fff,#000); -ms-filter:"progid:DXImageTransform.Microsoft.gradient(gradientType = 0, startColorstr = #fff, endColorstr = #000)"; //IE8.0 版本可以识别; +background:#ccc; //针对IE6 IE7设置纯色背景色; }
标签:
原文地址:http://www.cnblogs.com/newh5/p/4503302.html