通過CSS實現顏色漸變
阿新 • • 發佈:2018-12-30
/*顏色漸變*/
/*IE*/
FILTER: progid: DXImageTransform.Microsoft.Gradient(gradientType=0, startColorStr=##001834, endColorStr=#07617c);
/*火狐*/
background: -moz-linear-gradient(top, #001834, #07617c);
/*谷歌*/
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#001834), to(#07617c));
/* Safari & Chrome*/
background-image: -webkit-gradient(linear, left bottom, left top, color-start(0, #001834), color-stop(1, #07617c));
/*IE6 & IE7*/
filter: progid: DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#001834', endColorstr='#07617c');
/* IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#001834', endColorstr='#07617c')";