如果您看http://jsfiddle.net/q2cFb/1/,您可以看到#b
和#a
在Firefox(13.0.1)上不起作用。這是爲什麼?它適用於Chrome(使用不同的語法,但顏色相同)。漸變不工作在Firefox - 我需要特定的顏色順序?
我是否需要使用某些特定顏色才能使用漸變效果? #a
和#c
都使用兩種顏色,但#a
不起作用。
HTML:
<div id='c'></div>
<div id='b'></div>
<div id='a'></div>
CSS:
#c {
background-image: -moz-linear-gradient(center bottom , #131315 37%, #272727 75%);
}
#b {
background-image: -moz-linear-gradient(center bottom , #242424 80%, #1E1E1E 58%, #191919 20%);
}
#a {
background-image: -moz-linear-gradient(center bottom , #242424 80%, #191919 20%);
}
我的建議。通過Photoshop製作最佳的跨瀏覽器解決方案。 – Raptor