3
我有一個梯度格,那就是:Firefox的線性漸變問題
<div class="gradient"></div>
這裏是CSS:
.gradient {
width: 20px;
height: 20px;
background: linear-gradient(to right, rgba(0,0,0,0) 0%, #fff 100%)
}
很簡單。 在Chrome中它工作正常,但在Firefox(34.0,Ubuntu的14.04),它的工作不正確:
我試圖使用rgba(0,0,0,0)
代替transparent
,試圖-moz-linear-gradient
前綴 - 沒有結果。
謝謝!
[CSS3 White to Transparent Gradient]的可能重複(http://stackoverflow.com/questions/15647305/css3-white-to-transparent-gradient) –
你看過[this?](http:// www.colorzilla.com/gradient-editor/) – jbutler483