我有一個列表,每個李有一個圖像,然後一些文本。P標籤內容在浮動圖像下出血
<div style="width:500px;">
<ul >
<li>
<img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTyBPzjBIU0gCSFH7mLEVMuQ6d69KYfe14YCsJcLXCbHzhqJZ2p" width="100px" style ="float:left; ">
<p>First line......<br/>Second: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
</li>
</ul>
</div>
的問題是:如果p
內容超出圖像的高度,它流向左,圖像下。我怎樣才能阻止呢?我在圖像下面什麼都沒有(每個<li>
)。
感謝
這就是'float'的全部要點。 –