我有这个页面,我在身体上使用背景图像。我是一名专业的网络开发人员,已经完成了数千次,所以我绝不是初学者。
无论如何,背景图像显示在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;
}
请帮助,因为这让我发疯了。
干杯
汉斯
答案 0 :(得分:1)
您的<body>
使用此属性进行渲染:background="img/adbg.jpg"
也许它会覆盖你的CSS。这可能是罪魁祸首吗?