http://nategines.com/Beta/HTML/work2.html
我在线购买了这个模板,并在 和 中添加了单独的背景图像 css 图像。我的想法是我想要两个重叠的背景图像。
该页面在 chrome 和 Safari 中显示良好,但在 firefox 中,附加的背景图像不显示并且显示附加的图像,但忽略 y 位置。
任何人都可以帮助我了解发生了什么吗?
谢谢!
最佳答案
首先,background-position-y
在 firefox 中不起作用,因为它应该是
应该是这样
background-position: center 35px;
body{
background: url('../../images/eraser.svg') no-repeat scroll center;
background-size: auto 350px;
background-position: center 35px;
}
关于html - 背景 css 图像不会在 firefox 中显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27093145/