【发布时间】:2015-04-21 21:46:53
【问题描述】:
我在这里遇到了嵌套 div 标签的问题。如下图所示,它在 IE 中显示一种方式,在 Firefox 中显示另一种方式。我实际上更喜欢 IE 布局。知道如何解决吗?
这是我的代码:
<div style="width:1200; ">
<p align = "center"><b><font size="4">Joke Of The Day</font></b><p>
<div style="width: 80px; float:left; margin:4; "><img src="FredFlipoff.jpg" width="80px" height="80px"></div>
<div style="width: 280px;>
<p align="justify"><font size=2">To smooth over her recent negative comments about his presidency, Hillary Clinton said she and Barack Obama will "Hug-it-Out" next time they meet. Hearing this, Bill Clinton said he also will "Hug-it-Out" with political rivals Megan Fox, Angelina Jolie, Sophia Vergara, Scarlett Johanson, and that Hot waitress who works at The Olive Garden.
</font><br><hr id='hrdotted' /></div>
</div>
两个输出是这样的:
就像 Firefox 出于某种原因将文本环绕在图像周围,这样做会使 div 的宽度比应有的短。
【问题讨论】:
标签: html internet-explorer firefox