如何在容器流体how to design it to text at the blue part always takes inside a container 中使用bootstrap 4容器
答案 0 :(得分:0)
就这样:)
https://jsfiddle.net/7pd5xn6h/2/
.container-fluid-bg {
background-color: blue;
}
.container-bg {
background-color: green;
min-height:300px;
}
.row-bg {
background-color: yellow;
}
.col-bg {
background-color: red;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid container-fluid-bg">
<div class="container container-bg">
<div class="row row-bg">
<div class="col-7 offset-1 col-bg">
Hello
</div>
<div class="col-4 col-bg">Hello</div>
</div>
</div>
</div>