我无法为bootstrap jumbotrons设置背景图像.我的main.css是在bootstrap css之后,我选择了一个叫做"banner"的类的jumbotron,它与jumbotron在同一个div中,但它仍然不起作用.这是我的代码......
HTML:
<!-- Banner -->
<div class="jumbotron banner">
<div class="container">
<hgroup>
<h1>
Bits king
</h1>
<h2>
Web Design & Development
</h2>
</hgroup>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
.banner {
height: 400px;
width: 100%;
max-height: 50%;
max-width: 100%;
min-height: 20%;
min-width: 30%;
background-image: url("../assets/images/banner.jpeg");
background-size: cover;
}
Run Code Online (Sandbox Code Playgroud) html css background-image twitter-bootstrap twitter-bootstrap-3