【发布时间】:2017-03-02 19:39:49
【问题描述】:
我正在使用 Bootstrap 3,我希望 3 列在不同大小 (lg -> xs) 中保持响应。我正在尝试对每种尺寸使用带有 col-xx-4 的网格系统,但是一旦达到
例子可以看here
我希望灰色框中的红色、绿色和蓝色列始终等于 3 列。也许在 xs 中它们可以折叠,但至少在 768px 视口之前它们应该是彼此相邻的 3 列。
我使用了 col-xs-4,它应该始终保持水平。
摘录我的一些代码:
<div class="dash-bg">
<div class="" style="background: #d5d5d5; height: 500px;">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" style="background: red; height: 30px;">
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" style="background: blue; height: 30px;">
</div>
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4" style="background: green; height: 30px;">
</div>
</div>
</div>
【问题讨论】:
标签: html css twitter-bootstrap grid