【发布时间】:2017-07-14 02:11:34
【问题描述】:
有没有办法在引导程序中有:
所以我希望文本和图像位于页面的中心。 右边是文本右对齐,左边是图像 我尝试过使用 div,然后使用 table,但没有成功。
我试过了:
<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>
编辑文字应该在图像的中间对齐,并且两者都应该在中心。
【问题讨论】:
-
@ZimSystem 为什么你认为这是重复的?
标签: css image twitter-bootstrap text