开发者

css3 moz-linear-gradient not working

For some reason my webkit definition works on chrome but in firefox 3.5.11 I am not seeing my gradient.

html {
  hei开发者_Python百科ght: 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));
}

I have tried examples on https://developer.mozilla.org/en/using_gradients with no luck.


Ahem

At the top of the page:

Introduced in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)

Of course it won't work in Firefox 3.5.


Change background-image to background when using gradients.


It should be background, not background-image.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜