<分区>
在 bootstrap 中有没有办法:
所以我希望文本和图像位于页面的中央。 右边是文本右对齐,左边是图像 我尝试过使用 div,然后尝试使用表格,但均未成功。
我试过:
<img src="your-image/path-here.jpg" class="img-responsive center-block" />
我的代码:
<div class="container">
<div class="row">
<div class="col-md-12">
<img style='float:left;width:200px;height:200px; margin-right:10px;' src="img/bootstrap.jpg" />
<p>Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.</p>
</div>
</div>
编辑 文本应在图像中间对齐,并且两者都应居中。