我在这里得到了这个背景色
-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/