我正在尝试为此 div 设置背景颜色,但由于某种原因它保持透明(不显示)。我错过了什么?
<div class="chesse_people">
<img class="badge-icon" src="img/cheese_expert.jpg">
<h4>Chief Cheese Taster - Dave Le Conk</h4>
<p class="chesse_people">text here.</p>
</div>
.cheese_people {
background-color: #ed6c85;
float:left;
width:70%;
}
.badge-icon {
float:left;
margin-right:20px;
}