<html>
<div style="width:200px;">
<div style="background:red;height:5px"></div>
<div style="background:yellow">
Magnets?
</div>
<div style="background:green;height:5px"></div>
</div>
</html>
Rendering with "Magnets?" wrapped in h3 tags这些div为什么相互排斥?
怎么来的div而不再是连续的,如果 “磁铁?”包裹在段落或标题标签中?
谢谢!将默认边距设置为0有效,但为什么div不能与内容一起展开? – 2010-05-20 03:39:11