gpt4 book ai didi

html - 使两个 COL Bootstrap 3 高度相同,但带有填充

转载 作者:行者123 更新时间:2023-11-28 10:53:38 24 4
gpt4 key购买 nike

我想让它看起来像这样,但没有 javascript,这是我想要的截图

enter image description here

这是我现在在 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

http://jsfiddle.net/D9tc4/

最佳答案

你可以像这样使用负边距..

.element{
padding:20px;
margin-bottom: -99999px;
padding-bottom: 99999px;
}

演示:http://www.bootply.com/125300

关于html - 使两个 COL Bootstrap 3 高度相同,但带有填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22692005/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com