簡體   English   中英

css3 moz-linear-gradient不起作用

[英]css3 moz-linear-gradient not working

由於某種原因,我的Webkit定義適用於chrome,但在firefox 3.5.11中我看不到漸變。

html {
  height: 100%;
}
body {
  height: 100%;
  background-repeat: no-repeat;
}
body{
  height:100%;
  background-color: #eaebeb;
  background-image: -moz-linear-gradient(top, #eaebeb, #fff);
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eaebeb), to(#fff));
}

我已經嘗試過https://developer.mozilla.org/en/using_gradients上的示例,但是沒有運氣。

hem

在頁面頂部:

在Gecko 1.9.2(Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)中引入

當然,它在Firefox 3.5中不起作用。

使用漸變時,將background-image更改為background

它應該是background ,而不是background-image

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM