我目前正在开发一个网站,网址为samgatha.org。 在mozilla中打开时,身体背景造型不起作用。 另外我注意到,当我包含doctype标签时,背景也会失败。Backgroud css在mozilla中不工作
该网站托管在samgatha.org。
body{
overflow:hidden;
margin:0 auto;
background-image: url('/assets/bgm.png');
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
width:100%;
}
这是CSS,我可以根据请求添加其他代码。
代码在哪里? –
我已经包含了CSS,我以为你可以在浏览器中看到页面源代码。 – klbm9999
尝试在路径'url('../ assets/bgm.png')上添加2个点;'**或**让页面标题(而不是外部样式表)中的正文css实例''。 –