我正在尝试在包含2个不同列的行中使用多个div,所以当我将内容放在这些div中时,我无法弄清楚如何将所有内容粘贴在一起而不是将其放在另一个上。
这是我的小提琴:http://jsfiddle.net/TheGBCoder/emn2ryf6/
请详细了解此图片:
<div id="main" class="main">
<div class="container">
<div class="row">
<div class="col-md-6 no1">
<p><img src="img/sample1.png"/></p>
</div>
<div class="col-md-6">
<div class="col-md-8 no2">
<!--Tab 2-->
<div class="customno2">
<h1>Lorem Ipsum</h1>
<h2>Lorem Ipsum</h2>
</br>
<p>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 class="btn-group customgbtn" role="group">
<button id="custombtn1" type="button" class="btn btn-default">
<span class="glyphicon glyphicon-option-horizontal"></span>
</button>
<button id="custombtn2" type="button" class="btn btn-default">
READ THE FULL WELCOME</button>
</div>
</div>
</div>
<div class="col-md-4 no3">
<ul id="social">
<li><img src="img/facebook.png"><a href="#"></a></li>
<li><img src="img/twitter.png"><a href="#"></a></li>
</ul>
</div>
<div class="col-md-12"> </div>
<!--
<div class="col-md-1 no3">
<ul id="social">
<li><img src="img/facebook.png"><a href="#"></a></li>
<li><img src="img/twitter.png"><a href="#"></a></li>
</ul>
</div>-->
</div>
</div>
</div>
答案 0 :(得分:0)
我相信这应该可以胜任:
<div class="row">
<div class="col-md-6">
</div>
<div class="col-md-6">
<div class="col-md-8"> </div>
<div class="col-md-4> </div>
<div class="col-md-12"> </div>
</div>
</div>