之間的空隙,我有我的html的以下部分結算創建兩個div
<div class="header">
<div class="header-bar">
<div class="pull-left">
<div class="title">Ci models database</div>
</div>
</div>
<div class="clear-both"></div>
<ol class=breadcrumb>
<li class="active"><a href="#">All models</a></li>
</ol>
</div>
的CSS(麪包屑和活動類是自舉)
.header-bar {
border: None;
background-color: #66CCFF;
min-height:30px;
}
.title {
padding: 5px 5px 10px 5px;
color: white;
font-size: large;
}
.clear-both{
clear:both;
}
但之間的報頭 - bar和breadcrumb html添加了一個空格(see bootply)。如何刪除此空白區域,因爲在div之間沒有找到填充和邊距。
'breadcrumb'類內置了垂直填充...可以這樣嗎? –