css3 线性渐变背景图像在 Opera 11.11 中不起作用

标签 css opera linear-gradients

Opera 11.10 Ubuntu 10.04 64 位:工作

Opera 11.11 Windows 7 64 位:不工作

background-color: #D22027;
background-image:         linear-gradient(bottom, #D22027, #444444);
background-image:    -moz-linear-gradient(bottom, #D22027, #444444);
background-image: -webkit-linear-gradient(bottom, #D22027, #444444);
background-image:      -o-linear-gradient(bottom, #D22027, #444444);

有什么想法吗?

最佳答案

你的渐变代码是错误的它不是图像

background:         linear-gradient(bottom, #D22027, #444444);
background:    -moz-linear-gradient(bottom, #D22027, #444444);
background: -webkit-linear-gradient(bottom, #D22027, #444444);
background:      -o-linear-gradient(bottom, #D22027, #444444);

现在他们在 safari、crome、opera、opera next、IE 和 firefox 中为我工作。 并添加这些以实现兼容性

/* Chrome before 10,Safari4+ */
background: -webkit-gradient(bottom, #D22027, #444444);
/* IE10 */
background:     -ms-linear-gradient(bottom, #D22027, #444444);

你可以使用 http://www.colorzilla.com/gradient-editor/ 用于快速创建高兼容梯度和/或用于学习。

关于css3 线性渐变背景图像在 Opera 11.11 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6253186/

相关文章:

css - 在 bg 重叠处将文本颜色从黑色更改为白色

html - CSS 渐变色 block

jquery - 可能的 Jquery 冲突或只是损坏的脚本?

html - 具有空间填充元素的组合 HTML 布局

html - IE 11 滚动条 float 到顶部问题

css - 如何在 opera 浏览器的 css 中设置 if?

mobile - Opera Mobile 浏览器上的触发事件以更改方向

css - CSS 中的 [x* ="y"] 和 [x^ ="y"] 是什么意思?

objective-c - 读取 Opera *dat 文件 Objective C

html - CSS "background-image: linear-gradient"产生不需要的 180 度重复彩色条纹