我的背景没有加载。它嵌入在通过样式表加载的 header 标记中。请参阅下面的 CSS:
header{
margin: 0;
background-image: url(/images/sagage_header900.png) no-repeat ;
display: block;
}
提前致谢!
最佳答案
不要在 background-image
属性中使用 no-repeat
。
试试这个:
background: url(/images/sagage_header900.png) no-repeat;
或
background-image: url(/images/sagage_header900.png);
background-repeat: no-repeat;
关于html - 标题背景未加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43590749/