如何将文本放在bootstrap中的图像前?
因此,我需要使用Bootstrap将文本定位在图像旁边。它应该看起来像: this
我拥有的代码:
<div id="picture">
<img src="img/preview.jpg">
</div>
<div id="description">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. <br>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. <br>
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</div>
So I need to position text next to an image using bootstrap. It should look something like:
this
The code I have:
<div id="picture">
<img src="img/preview.jpg">
</div>
<div id="description">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. <br>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. <br>
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
- 引导程序可在12个网格系统上工作。
col
划分。对于您的布局,我将其分为图像的
col-8
和col-4
文本。-Bootstrap works on 12 grid systems.
col
.for your lay out I have divided it into
col-8
for image andcol-4
for text.尝试这样的事情
Try something like this
您可以尝试使用Bootstrap的常规布局(12个COLS网格)
You can try using bootstrap's conventional layout (12 cols grid)