【发布时间】:2019-08-01 23:04:35
【问题描述】:
我想使用 Bootstrap 4 创建一个类似于this page 的网格系统。我想在 col-sm-4 中创建一个方形框,并在 col-sm-8 中创建一个较长的矩形旁边高度。我无法创建一个响应式的方形框。我该怎么做?!
当前代码:
<div class="container">
<div class="row section-box">
<div class="col-sm-4 text-center description-text">
first square box.
</div>
<div class="col-sm-8 description-image">
second rectangle box.
</div>
</div>
</div>
我尝试过的事情:
- Using jQuery to set the height。这不适用于 div 上的填充,并且不响应。
- This link 在那里我设法得到了一个旁边有一个矩形的方形框,但是一旦添加了文本,它就不再是方形了。
【问题讨论】:
-
你能在这里发布一些代码,以便我们提供示例。有很多关于引导网格的内容。
-
你试过什么?你的代码在哪里?请阅读:How to create a Minimal, Complete, and Verifiable example
-
@disinfor 我又添加了一些...
-
你能澄清一下:bootstrap 3 还是 4?
-
@G-Cyr 引导程序 4
标签: css twitter-bootstrap