【发布时间】:2016-09-20 17:56:54
【问题描述】:
我在 bootstrap 中创建了一个网站,但在两列中遇到了高度问题。 在联系页面上,地图下方有两列。左边是图片,右边是一些文字,如果有人能帮我拿到它,他们会在相同的高度做出回应,我会很高兴。因此,左右列在对齐到全宽之前以相同的方式调整大小。
http://reraisedesign.com/contact-us.php
<div class="container-fluid" style="padding: 0; background: #fff;">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 con-img">
<img src="img/contact-us.jpg" width="100%"/>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 con-blurb">
<div class="row">
<div class="col-xs-10 col-xs-offset-1">
<h1>Say Hello</h1>
<span class="line-left"></span>
<p>We would like to just thank you for taking the time to visit our site, if you would like hear more about ReRaise feel free to give us a call or drop us an email. We would love to hear about any potential projects or queries you may have and will always aim to respond the same day.</p>
<p class="con-dets">0151 705 3414</br>
<a href="mailto:info@reraisedesign.com?Subject=Hey%20ReRaise">Send us an Email</a></p>
</div>
</div>
</div>
</div>
这是伴随 HTML 的 CSS
.con-blurb{
padding-top:100px;
padding-bottom:100px;
}
.con-img{
size:cover;
-webkit-size: cover;
-moz-size: cover;
-o-size: cover;
height: 100%;
}
.con-blurb h1{
text-align: left;
}
【问题讨论】:
-
你真的应该通过创建MVCE来包含一些代码
-
抱歉添加了它。
标签: html twitter-bootstrap css