html - 页脚在 IE6 中被删除了 1px

标签 html css internet-explorer-6

这是链接:

DAMNIE6TOHELL

正如您在出色的“IE6-o-color”中看到的那样,页脚向左移动了 1 像素。 我正在努力寻找解决此问题的方法,我已将其削减到最少的 HTML。

这可能与 haslayout 有关吗?非常感谢任何帮助。

最佳答案

这看起来像是 IE6 1px jog 的情况这可以通过一些不同的修复来解决。

您将只想将这些修复应用到 IE6,使用您喜欢的方法(条件注释、星号 html hack 等)。你可以

  • 将背景位置应用于#container_bottom

    container_bottom { 背景位置:1px 0;

  • 对#container_bottom 应用左边距或填充

    container_bottom { margin-left:1px;

  • 或者将#container_bottom float 到左边并给它一个宽度

    container_bottom { float :左;宽度:800px;

这些似乎都对我有用。

关于html - 页脚在 IE6 中被删除了 1px,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/258273/

相关文章:

html - HTML 表格中的自动缩放图像

javascript - 使用与所有主要浏览器兼容的 javascript 创建条形图、折线图和饼图时使用什么?

css - IE6 位置 :absolute in relative container resizing

html - 根据 Angular 6 中的类删除元素

html - 组件打开后按钮的蓝色边框

html - Css 样式 html 嵌入式代码

javascript - 如何淡入特定的 CSS 属性

html - 错误 404 的 css 路径

css - 下拉菜单 CSS 扇区

css - IE 6 宽度 = 70% 对于动态数据不起作用的弹出 div