html - 标题背景未加载

标签 html css

我的背景没有加载。它嵌入在通过样式表加载的 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/

相关文章:

php - 将 html 与 php 注释类分开

javascript - Firefox 每次刷新都会更改选择单选框!

.net core 2 中未加载 jQuery Grid css

html - 我如何在奇数/偶数 <dd> 行之间交替背景颜色

html - CSS 问题 - 为什么 4 * 25% 不是 100%

html - 如何将垂直和水平居中的文本对齐到图像的右侧?

html - 在我的下拉菜单上添加第三层

html - CSS 边距防止区域可点击

html - 什么是 CSS 转换 :translate() property ultimately for?

css - AMP HTML 支持哪些 CSS 规则?