html让同一行的文字和图片居中对齐显示

<div class="satisDiv span12 borderB pad10px h44">
<span class="fs028rem ">满意度:</span>
<span class="ml030rem fs028rem">十分满意</span>
<img class="ml020rem" data-rateLevel="1" src="images/applicationForCar/unchooseico.png" width="16px;">
<span class="ml030rem fs028rem">满意</span>
<img class="ml020rem" data-rateLevel="2" src="images/applicationForCar/unchooseico.png" width="16px;">
<span class="ml030rem fs028rem">一般</span>
<img class="ml020rem" data-rateLevel="3" src="images/applicationForCar/unchooseico.png" width="16px;">
</div>

 

.satisDiv span,img{
padding-left:0;
vertical-align:middle;
display:inline-block;
float: none;
}

posted on 2022-04-28 18:07  zyp_java_net  阅读(583)  评论(0编辑  收藏  举报

导航