【发布时间】:2012-04-10 18:01:06
【问题描述】:
我想在所有浏览器中为特定元素使用 css 3 渐变。我为此使用http://www.colorzilla.com/gradient-editor,它创建了以下代码:
background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5));
background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%);
background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%);
background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%);
background: linear-gradient(top, #ffffff 0%,#e5e5e5 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 );
它在所有主流浏览器上都能正常工作,除了 Opara。
什么是问题和解决方案?我正在使用 Opera 11.0
【问题讨论】:
-
我看不出你的css有什么问题,也许其他地方有问题......
标签: css