我试图在下面的屏幕截图中复制这个布局,方法是将图像水平放置在文本框旁边。数字3和4是图像,6和5是文本。
我应该用的文字吗?
<div class="container">
<div class="jumbotron">
<h1>Bootstrap Tutorial</h1>
<p>Bootstrap is the most popular HTML, CSS, and JS framework for developing
responsive, mobile-first projects on the web.</p>
</div>
<p>This is some text.</p>
<p>This is another text.</p>
</div>在我必须在正确的地方发短信之后,我怎么才能像在下面的图表上那样把图片放在左边呢?

发布于 2017-03-25 01:12:04
看起来您正在使用引导程序,因此可以很好地使用行和列:
<div class="row">
<div class="col-xl-4"> Image box 3</div>
<div class="col-xl-8"> Text box 6</div>
</div>
<div class="row">
<div class="col-xl-4"> Image box 4</div>
<div class="col-xl-8"> Text box 5</div>
</div>有关引导程序使用的网格系统的更多信息:
https://stackoverflow.com/questions/43011211
复制相似问题