【发布时间】:2010-09-22 02:41:48
【问题描述】:
这听起来很简单,但我被卡住了。我需要在 IE8 中将 DIV 设置为 434 像素宽。以下是我的代码。这在 FF 中有效,但 IE8 总是以 414 像素的宽度呈现 DIV。为什么会砍掉 20 个像素?
<html>
<head>
<style type="text/css">
#box
{
width:434px;
background-color:red;
margin:0;
padding:0;
}
</style>
</head>
<body>
<div id="box"> </div>
</body>
</html>
我也在严格模式下试过,结果一样。
【问题讨论】:
-
您找到解决问题的方法了吗?这里的任何答案对您有帮助吗?
-
不,从未找到解决方案。
标签: css internet-explorer-8 width