为什么这个span会被挤下去?设置浮动之后才不会 财富值77

2016-10-23 16:37发布

<div class="cont-shopping">
<span class="shop-car">购物车</span>
<span class="shop-num">0</span>
</div>
.shop-car{

 display: inline-block;   width: 87px;  height: 35px;  border-right: rgb(226,122,0) solid 1px;  background: url(images/1_10.jpg) 10px center no-repeat; text-indent: 40px; line-height: 35px; 

}
.shop-num{

 display: inline-block;   line-height: 35px; width:28px; height: 35px; background:url(images/1_13.jpg) 30px center no-repeat; border-left:rgb(255,156,1) solid 1px; text-align: right; padding-right: 29px; 

}

友情提示: 问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
0条回答