firefox - Firefox 3.5 的 CSS 渐变

标签 firefox css gradient

我想要完成的是仅使用 css 创建渐变...我正在做的工作适用于除 firefox 3.5 以外的所有浏览器...这是代码:

 #gradient {
      color: #fff;
      height:50px;
      padding:0;
      width:940px;
      margin:0 auto;            
      background: -moz-linear-gradient(top, #CFE782 0%, #9BCB2A 2%,#5DA331 97%, #659635 100%);/* For Mozilla/Gecko (Firefox etc) */
 }

我省略了其他浏览器的背景...所以这是我的问题...

有谁知道为什么这在 Firefox 3.5 中不起作用,什么会起作用???

最佳答案

据我所知,它不起作用的原因是 -moz-linear-gradient 仅在 Firefox 3.6 中引入。

关于firefox - Firefox 3.5 的 CSS 渐变,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3149734/

相关文章:

Javascript 图像 "onabort"事件未在 Firefox 和 Chrome 中触发

css - 背景图像未在 Chrome 或 IE 中显示

javascript - 如何在html表格中使用分页

Jquery 自动完成导致页面不必要地滚动

html - 如何在另一个div前面获取一个div的子元素?

javascript - 如何用HTML5 Canvas绘制居中淡出渐变的圆圈?

css3 moz-linear-gradient 不工作

JavaScript 不适用于 FireFox

javascript - 类型错误 : [API] is undefined in content script or Why can't I do this in a content script?

swift - 如何使单元格具有渐变背景?