开发者

Why background image is not visible in Firefox?

开发者 https://www.devze.com 2023-01-21 06:09 出处:网络
I\'m using a 1280×850 image for background. With this CSS: body { line-height: 1; font-size: 11px; font-family: Verdana, Arial, Helvetic开发者_运维问答a, sans-serif;

I'm using a 1280×850 image for background. With this CSS:

body {
 line-height: 1;
 font-size: 11px;
 font-family: Verdana, Arial, Helvetic开发者_运维问答a, sans-serif;
 text-align: center;
 background:url(../images/bg.png) no-repeat bottom left;
}

Everything is ok in all browsers but not in Firefox. In Firefox, body background is white and background image is not visible. (I'm using meyer css reset).

How can I solve this?

Thanks in advance.


You will need to put some content in the body or set a height. Since your image is 850px tall use,

min-height:850px;
0

精彩评论

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