CSS 宽度在 IE 中不同?

标签 css internet-explorer

所以我有一个标准的 960 宽度网站,其中包含内容,我设置了宽度为 300 的框,每边有 10 个边距,因此它们将 float 3 个。它在 FF 和 Chrome 中看起来不错,但为什么在 IE 中第三个框总是跳到下一行并抛出 positiong。这就像 IE 读取宽度的方式与任何其他浏览器不同。太烦人了,请问有什么办法可以解决吗?

最佳答案

您必须在开始前重置所有元素(CSS 重置)

示例: http://necolas.github.io/normalize.css/

为什么? : CSS reset - What exactly does it do?

关于CSS 宽度在 IE 中不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24682605/

相关文章:

Java + Selenium : How to know if WebElement is clickable in a way other than isDisplayed, isEnabled 和 findElement?

html - IE10/Windows 8 奇怪的轮廓和所有元素的框阴影效果

css - 移动行为中的 Umbraco 页面

javascript - IE9无法获取属性值 'documentElement'

google-chrome - TFS 2013 Web 访问 - 无法注销

css - 在 Internet Explorer f12 中显示附加信息

javascript - onclick 函数在 IE 中返回 undefined,在 Chrome 和 Firefox 中工作正常

css - highcharts 实体仪表 : bigger tick marks

html - 父容器的高度没有为 child 拉伸(stretch)?

javascript - 如何从 IE8 中的输入获取文件?