我正在开发面向现代浏览器的应用程序平台,但在不支持CSS3梯度的CSS3上运行它是非常必要的。有谁能给我提点建议(SVG除外)对我有很大好处吗?
.GRAD_LINEAR(@start:#EEA611; @end:#E3EE11) {
background: @start;
background-image:-webkit-gradient(linear, left top, left bottom, from(@start), to(@end));
background-image:-webkit-linear-gradient(top, @start, @end);
background-image:-moz-linear-gradient(top, @start, @end);
background-image:-o-linear-gradient(top, @start, @end);
background-image:linear-gradient(to bottom, @start, @end);
//Your suggestion...
}发布于 2013-12-19 06:23:37
有几种方法可以实现这一点。
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
你会没事的。发布于 2013-12-19 06:14:36
您可以在IE9中使渐变工作,检查这一点-- 彩紫
https://stackoverflow.com/questions/20674550
复制相似问题