0

Opera 11.10 Ubuntu 10.04 64 Bit : WORKING

Opera 11.11 Windows 7 64 Bit : NOT WORKING

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);

Any ideas?

4

1 回答 1

0

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

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/ 快速创建高度兼容的渐变和/或进行学习。

于 2011-07-22T23:43:06.760 回答