【发布时间】:2020-10-07 07:08:51
【问题描述】:
我有以下使用 bootstrap 4 的标记:-
<div class="container">
<div class="row ">
<div class="col-xl-12">
<img src="~/img/img1.png" style="height:60.3px;width:750px" class="mx-auto d-none d-sm-block" />
<p style="color: #2EBDBE;font-weight:bold;font-size:13px;margin-bottom: 0px;">...</p>
<p style="color: #2EBDBE;font-weight:bold;font-size:13px;margin-bottom: 0px;">...</p>
<img src="~/img/img2.png" class="mx-auto d-block" />
<p style="color: #2EBDBE;font-weight:bold;font-size:13px;margin-bottom: 0px;">...</p>
<p style="color: #2EBDBE;font-weight:bold;font-size:13px;margin-bottom: 0px;">...</p>
</div>
</div>
</div>
目前我得到了这个布局:-
文本左对齐时图像居中的位置,那么我如何强制文本与图像具有相同的垂直对齐方式?
【问题讨论】:
标签: css twitter-bootstrap bootstrap-4 responsive-design