【发布时间】:2014-03-28 01:06:33
【问题描述】:
我想让它看起来像这样,但没有 javascript,这是我想要的屏幕截图
这是我现在在 boostrap 3 中所做的,内联中的 css 因为我使用较少,而且这是简单的方法:)
HTML
<section class="container-fluid" style="background-color:Red;
background-size: cover; padding-top:145px; padding-bottom:145px;">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="element" style="background-color:white; opacity:.90;
-moz-opacity:.90;
filter:alpha(opacity=90); padding-top:20px; padding-bottom:20px; margin-top:20px; margin-bottom:44px; margin-right:15px; padding-left:15px;">
<h2 class="color-brand">HEADING 2</h2>
<p class="color-grey">Hello Mate</p>
</div>
</div>
<div class="col-md-6">
<div class="element" style="background-color:white; opacity:.90;
-moz-opacity:.90;
filter:alpha(opacity=90); padding-top:20px; padding-bottom:20px; margin-top:20px; margin-bottom:44px; margin-right:15px; padding-left:15px;">
<h2 class="color-brand">HEADING 2</h2>
<p class="color-grey">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
</div>
</div>
</section>
这是工作的jfiddle
【问题讨论】:
-
可能想看看这个问答。 --- How can I make Bootstrap columns all the same height?
标签: html css height twitter-bootstrap-3 css-tables