事情是这样的:
http://img815.imageshack.us/img815/2608/senzatitolo1c.png
使用这个 HTML:
<div style="border:1px solid">
<img style="float:left"> text
</div>
最佳答案
将 overflow: auto
添加到您的容器以包含图像; float 将元素拉出流。
关于html - 带 float 的 img :left doesn't respect the container?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8658466/