你好我創建使用自舉一個簡單的列,但也有問題,如果第一列的內容是大的第三列將在右邊浮動:引導欄內容
#contact-me {
width: 100%;
padding: 40px 0;
/*font-family:Raleway, Arial, 'Open Sans';*/
}
#contact-me .contact-info-nested {
width: 100%;
margin-bottom: 20px;
text-align: center;
}
#contact-me .contact-info-nested i {
display: inline-block;
margin-bottom: 16px;
font-size: 50px;
}
#contact-me .contact-info h4 {
padding: 5px;
font-size: 16px;
line-height: 25px;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<section id="contact-me">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6">
<div class="contact-info-nested">
<i class="fa fa-map-marker"></i>
<h4>Bak-One Company 12345 Hollywood Bvld Street Los Angeles, California</h4>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="contact-info-nested">
<i class="fa fa-phone"></i>
<h4>+93 345 678 91 23</h4>
</div>
</div>
<div class="clearfix"> </div>
<div class="col-md-4 col-sm-6">
<div class="contact-info-nested">
<i class="fa fa-envelope-o"></i>
<h4>[email protected]</h4>
</div>
</div>
</div>
</div>
</section>
注:請運行在全屏
你想要做什麼用
col-lg-4
?所有在同一行或什麼? – aavrug你想用它做什麼?第三個內容應該在左邊還是在第一行? –
我需要第三列工作良好的默認行爲,即將離開不正確! –