本文介绍了浮动图片后开始新段落的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(总的使用表进行布局非常容易" HTML n00b问题)
我有一个段落,右边有浮动图像:
(Total "layout with tables was so much easier" HTML n00b question)
I have a paragraph with a floating image to the right:
<img src="foo.png" style="float: right" /><p>Blablabla</p>
<p> next paragraph</p>>
如果第一段很短,则图像也会在下一段之外浮动.
我希望下一个段落在图像之后开始.我该怎么办?
(只是将它们包装在div中没有任何区别..)
If the first paragraph is short, the image also floats besides the next paragraph.
I want Next paragraph to start after the image. How do I do that?
(just wrapping them in a div doesn''t make any difference..)
推荐答案
<p style="clear:both;">
这篇关于浮动图片后开始新段落的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!