我真不明白,CSS :(CSS填充,不向父母DIV
为什么以下padding
没有推出父div的大小?
HTML
<div class="lead-table">
<div class="row table-head-1">
<div class="col-md-9">
<span><strong>My Leads</strong></span>
</div>
</div>
</div>
CSS
.lead-table .table-head-1 {
background-color: #053449;
text-transform: uppercase;
color: #ffffff;
font-size: 12px;
}
.lead-table .table-head-1 span {
padding: 20px 18px;
}
http://www.bootply.com/gsT2mwsA8h#
任何帮助赞赏这个CSS noob。
感谢
跨度是非块元素。您是否尝试过.lead-table .table-head-1跨度{padding:20px 18px;显示:inline-block; } – HADI