我無法弄清楚爲什麼我的jumbotron容器覆蓋整個頁面。我正試圖在「找到你的大學」之前讓jumbotron停下來。.jumbotron背景覆蓋整個頁面
其次,我也遇到了將搜索欄移動到jumbotron中間的問題。誰能幫忙?我是HTML,CSS和Bootstrap的新手。
HTML:
<div class="center jumbotron">
<div class="container">
<h1>MOVE ABROAD WITH EASE</h1>
<h2>Find out about the cities, where to live and eat, hangout groups.</h2>
<div class="container">
<div class="row">
<div id="custom-search-input">
<div class="input-group col-md-6">
<input type="text" class=" search-query form-control" placeholder="Which city are you moving to?" />
<span class="input-group-btn">
<button class="btn btn-danger" type="button">
<span class=" glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
CSS:
.center {
text-align: center;
}
#custom-search-input {
margin: 0;
margin-top: 50px;
margin-bottom: 50px;
padding: 10;
}
您需要提供css代碼和演示頁面。 – Fala