我的网站在新浏览器中看起来很正常,但它不会在较旧的浏览器中显示主容器的背景。CSS在Firefox 2.0中不起作用
这里要说的是应该把有背景的CSS:
#container {
background-image:url('photo.png');
background-repeat: no-repeat;
height: 541px;
width:1020px;
margin: auto;
position: relative;
}
我在做什么错?谢谢。
我的网站在新浏览器中看起来很正常,但它不会在较旧的浏览器中显示主容器的背景。CSS在Firefox 2.0中不起作用
这里要说的是应该把有背景的CSS:
#container {
background-image:url('photo.png');
background-repeat: no-repeat;
height: 541px;
width:1020px;
margin: auto;
position: relative;
}
我在做什么错?谢谢。
您的文件夹结构中的哪个位置是与您的html文件相关的photo.png? – tw16