我的CSS圖像未顯示。在文件結構中一切都是相對的。CSS背景圖片未顯示
.header-container {
position: relative;
width: 100%;
min-height: auto;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
background-position: center;
background-image: url('/images/header.jpg');
text-align: center;
color: white;
}
<div class="header-container">
<div class="header-content">
<div class="header-content-inner">
<h1 id="homeHeading">Your Favorite Source of Free Bootstrap Themes</h1>
<hr>
<p>Start Bootstrap can help you build better websites using the Bootstrap CSS framework! Just download your template and start going, no strings attached!</p>
<a href="#about" class="btn btn-primary btn-xl page-scroll">Find Out More</a>
</div>
</div>
</div>
「一切都相對明智是正確的,涉及文件結構」 - 你是如何證實這一點的? – Quentin
正如你在這裏看到的,圖像顯示出來了:https://jsfiddle.net/zszf5hff/ – Vivick
這些東西重寫它! –