Html 如何使用对齐的输出堆叠图像?
我已经有了这些帖子,它们是图像和输出,我想堆叠在一列中,但是div被卡在了彼此的顶部。我想把它们叠起来,中间留一点空隙。如何使用对齐的输出堆叠图像Html 如何使用对齐的输出堆叠图像?,html,css,Html,Css,我已经有了这些帖子,它们是图像和输出,我想堆叠在一列中,但是div被卡在了彼此的顶部。我想把它们叠起来,中间留一点空隙。如何使用对齐的输出堆叠图像 <hr /> <div id="listingwrapper"> <div style="float:left;"> <img src="gateway/imgs/stock/profilechick.jpg" /> </div> <div style=
<hr />
<div id="listingwrapper">
<div style="float:left;">
<img src="gateway/imgs/stock/profilechick.jpg" />
</div>
<div style="float:left; width: 246px;">
<span style="color:white;"><b>Wicked awesome chick goes to the</b></span><br/>
</div><br/>
<div>
<span style="color:white;"><i>600 views</i></span>
</div>
</div>
<div id="listingwrapper" style="clear:both;">
<div style="float:left;">
<img src="gateway/imgs/stock/profilechick.jpg" />
</div>
<div style="float:left; width: 246px;">
<span style="color:white;"><b>Wicked awesome chick goes to the</b></span><br/>
</div><br/>
<div>
<span style="color:white;"><i>600 views</i></span>
</div>
</div>
试试这个
列表包装器{
明确:两者皆有;
利润上限:35px;
溢出:隐藏;
}在一列中堆叠和在另一列上堆叠有什么区别?