<分区>
<分区>
我正在使用此 Sass 在某些静态页面上设置标题样式,但背景图像未显示。我很确定我的相对文件路径是正确的(样式表在样式表文件夹中,图像是图像文件夹,两者都在 Assets 文件夹中)。还有什么可能导致这个?
.blue_section_header
width: 900px
height: 80px
font-size: 30px
font-weight: 700
padding: 25px 0 0 40px
color: #fff
background: #54a0ce url(../images/section_header.png)
-webkit-border-radius: 4px
-moz-border-radius: 4px
border-radius: 4px
最佳答案
在 Chrome 中:
1) Open Developer Tools 2) Click the Resources tab at the top 3) Open the Frames folder 4) Look for the Images folder and open it
您在图像文件夹中看到您的图像了吗?如果您没有看到图像,则表示您的相对路径不正确。
关于html - 为什么我的标题图片不显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21321487/