首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CSS3不是跨浏览器渲染

CSS3不是跨浏览器渲染
EN

Stack Overflow用户
提问于 2012-02-10 21:12:49
回答 1查看 120关注 0票数 0

我有CSS3渐变和CSS3背景剪辑,但是火狐,Safari和IE不渲染它们。这是我的代码:

我尝试了IE的pogid过滤器,但什么都没有。

谢谢!

代码语言:javascript
复制
 background: linear-gradient(top, #b58600 0%, #ffbd00 100%);
 background: -webkit-gradient(linear, left top, left bottom, color-            stop(0%,#b58600), color-stop(100%,#ffbbd00)); 
 background: -webkit-linear-gradient(top, #b58600 0%, #ffbd00 100%);
 background: -moz-linear-gradient(top, #b58600 0%, #ffbd00 100%);
 background: -o-linear-gradient(top, #b58600 0%, #ffbd00 100%);
 background: -ms-linear-gradient(top, #b58600 0%, #ffbd00 100%);
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b58600', endColorstr='#ffbd00',GradientType=0 );
 background-clip: text;
 -webkit-background-clip: text;
 -moz-background-clip: text;
 -o-background-clip: text;
 -ms-background-clip: text;
 -khtml-background-clip: text;
EN

回答 1

Stack Overflow用户

发布于 2012-02-10 23:10:25

还要将color属性更改为transparent

示例:http://jsfiddle.net/E22wh/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9228331

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档