【发布时间】:2016-06-10 14:28:14
【问题描述】:
我目前正在构建一个网站,但我遇到了一些并排图像和文本的问题:
<div class='banner' style='background-color: #efefef'>
<div class='container-fluid'>
<div class="row-fluid">
<div class='col-sm-8'>
<div class='inner'>
<div class='title'>Travel Bezaff</div>
<div class='subtitle'>Like nothing you've ever experienced</div>
<div class="paragraph" style="text-align: center">
From the bustling streets of Casablanca to the dynamic capital city of Rabat to the labryinth like medina of the old city of Fez, prepare yourself for a journey into one of the most culturally diverse regions.
</div>
</div>
</div>
<div class='col-sm-4'></div>
</div>
</div>
</div>
我在一行中有两列,一列用于内容,另一列用于位于页面右侧的图像。如您所见,内容已经位于容器的左侧。
我只是想知道如何使两列高度相等。对于较大的屏幕尺寸,图像应该完全填满高度,但如果两列在折叠到较小的屏幕尺寸时相互堆叠,这当然是可以接受的。我怎样才能做到这一点?
【问题讨论】:
标签: html css twitter-bootstrap twitter-bootstrap-3