当段落和img都浮动时,为什么只有段落的第一行出现在左侧,而图像下方的所有其他行?这里是代码..
<!DOCTYPE html>
<html>
<head>
<style>
img,p
{
float:left;
}
</style>
</head>
<body>
<img src="logocss.gif" width="95" height="84" />
<p>
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</p>
但是当只有 img 浮动时一切都很好,即所有文本都出现在左侧