css - 无法获取 margin : auto to stick with 960 grid system in IE7/8

标签 css 960.gs

我读到很多人对此有疑问,并且我已经尝试了我能找到的所有解决方案 - 希望有人不能指出我在哪里犯了错误。

我正在研究 this site ,据我所知,我处于标准模式。文档类型是文件中的第一件事,它是有效的。我试过使用带有 text-align: center 的包装器 div 或 body 标签和使用 text-align: left 的容器 div。

我似乎找不到任何有用的东西。任何想法将不胜感激。

最佳答案

您的问题似乎出在 ie7.css 文件中。它有这样的规则:

* {
  display:inline;
  zoom:1;
}

行内元素没有外边距。您需要删除此规则,或将 display:block; 添加到 .container_12 某处。

关于css - 无法获取 margin : auto to stick with 960 grid system in IE7/8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4073288/

相关文章:

javascript - Jquery 当前页面链接样式

像 960 和 Blueprint 这样的 CSS 框架?

HTML5 Boilerplate 和 960.gs 我应该包含 reset.css 吗?

php - 360 度网格——以奇数条记录结束行

drupal - 960 网格系统实际上是 1180 宽。如何修复它?

html - z-index 不适用于位置集

css - 未记录的 CSS 属性

php - 如何更改产品列表中的列数?

css - Internet Explorer 9 忽略我的样式表

html - CSS 非相关选择器