CSS 背景色在 Chrome 中不起作用

标签 css google-chrome background-color

我在这里得到了这个背景色

-moz-linear-gradient(center top , #0043A1 0%, #0043A1 100%) repeat scroll 0 0 transparent;

但它在 google chrome 中不起作用,关于如何修复它有什么想法吗?

谢谢, J

最佳答案

替换为

linear-gradient(center top , #0043A1 0%, #0043A1 100%) repeat scroll 0 0 transparent;

-moz-* css 属性特定于 mozilla。它们在属性未标准化时很有用,但现在(使用 CSS3)您可以使用标准化的 linear-gradient

现在甚至是 Mozilla 文档 documents linear-gradient .

关于CSS 背景色在 Chrome 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12590404/

相关文章:

css - 如何使父级(不仅是可见窗口)的 block 填充宽度?

css - Firefox 不会加载 CSS

javascript - 如何在 Chrome 调试器中检查 JavaScript 函数返回值?

ios - 将 Collection View 单元格的 subview 发送到后面会阻止它更改 backgroundColor

javascript - OwlCarousel 网格画廊中的神秘间隙/填充

html - 如何通过展开空标签来分层背景图片?

html - 防止模糊时所选选项的颜色和背景颜色发生变化

javascript - Chrome 检查器与 Javascript 数组

c++ - 为Tab Control处理WM_PAINT事件也需要手动绘制项目?

flutter - 使用不透明度会产生错误的脚手架背景颜色