[英]Weird background-image behaviour in Firefox – displayed locally, but not online?
我有此页面,并且在身体上使用了背景图像。 我是一个专业的Web开发人员,实际上已经完成了数千次,所以我绝不是一个初学者。
无论如何,背景图片会显示在Safari和Chrome中,以及在Firefox中进行本地测试时也会显示。 一旦我上传页面并对其进行在线测试,它就不再显示在Firefox中(其他浏览器也可以)。
Firebug告诉我图像加载正常,并且路径正确。
有人知道这可能是什么原因吗? 我认为我检查了所有可能的“罪魁祸首”,并且如上所述,在Safari和Chrome中,无论本地还是在线,一切都很好。
您可以在此处查看页面: https : //ssl.director.dk/clients/pfmb/index.html
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
color: #fff;
margin: 0;
padding: 0;
background-image: url('../img/adbg.jpg');
background-color: #000000;
background-position: top center;
background-repeat: no-repeat;
background-attachment: fixed;
}
请帮助,因为这使我发疯。
干杯
汉斯
您的<body>
渲染具有以下属性: background="img/adbg.jpg"
也许它覆盖了您的CSS。 那可能是罪魁祸首吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.