开发者

CSS not working in Firefox 2.0

my site looks right in new browsers, but it won't display the background of the main container in older ones.

here is the css that should put the background there:

#container {
back开发者_运维技巧ground-image:url('photo.png');
background-repeat: no-repeat;
height: 541px;
width:1020px;
margin: auto;
position: relative;
}

What am I doing wrong? Thank you.


am not sure if I am right, but try thiss

background: url('photo.png') no-repeat;


Try using an absolute path. You can also ignore Firefox 2.0, which is not used by anyone today.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜