标题背景没有加载

时间:2017-04-24 14:25:26

标签: html css

我的背景没有加载。它嵌入在样式表中加载的标题标记中。见下面的CSS:

header{
margin: 0;
background-image: url(/images/sagage_header900.png) no-repeat ;
display: block;    
}

提前Thanx!

2 个答案:

答案 0 :(得分:1)

请勿在{{1​​}}属性中使用no-repeat

试试这个:

background-image

OR

background: url(/images/sagage_header900.png) no-repeat;

答案 1 :(得分:1)

尝试删除不重复

background-image: url(/images/sagage_header900.png);
background-repeat: no-repeat;

如果你想添加background-repeat:

background-image: url(/images/sagage_header900.png);

如果仍然无效,请尝试将background-repeat: no-repeat 添加到背景图片,如下所示:

!important