我有一个列表,每个 li 都有一个图像,然后是一些文本。
<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>
)。
谢谢