【发布时间】:2011-07-02 17:41:38
【问题描述】:
所有其他浏览器都正确呈现此内容。
<body>
<div>
<div><img src="img/logo_top.png" width="168" height="85" alt="Logo top" /></div>
<div><img src="img/logo_bottom.png" width="168" height="83" alt="Logo bottom" /></div>
</div>
</body>
没有 div 和图像之间的 也是一样的。
更新:
这是我的 HTML,带有文档类型:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
img {border: none;}
body {font-size: 0px;}
</style>
</head>
<body>
<div>
<div><img src="img/logo_top.png" alt="Logo top" /></div>
<div><img src="img/logo_bottom.png" alt="Logo bottom" /></div>
</div>
</body>
</html>
【问题讨论】:
-
Opera 是否有可能在 div 之后中断?!最终你可以用 CSS 解决这个问题。
-
您使用的是什么文档类型? (显示您的整个文件)