<div>
<div class="illustration">
<img src="image1.png" />
<p>Illustration caption</p>
</div>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
sed diam voluptua. Atvero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</p>
</div>
div.illustration
{
float:right;
border-top: 1px solid #505050;
border-left: 1px solid #505050;
border-right: 1px solid #505050;
border-bottom: 1px solid #505050;
margin-right:30px;
margin-top:100px;
text-align:center;
padding:2px;
background: #96C3FF;
}
div.illustration p
{
margin:0;
font-size:small;
font-style:italic;
padding:0;
}
据我所知,唯一的方法是将浮动的 div 实际放置在文本行之间。
<div style="width: 600px;">
this text will go above the image.
<img style="float:left;" />
this text will go next to and below the image.
</div>