html - 页脚在 chrome 中显示不正确

标签 html css cross-browser

关于 this page ,页脚在 Chrome 17 中无法正确显示。所有链接应均匀分布在一行中,但它看起来像这样:

enter image description here

它在 IE 和 Firefox 中看起来不错,有人建议我如何解决 Chrome 中的问题而不会在其他浏览器中破坏它吗?

最佳答案

在你的 css 中更新这个 id --

ul#footerLinks li {
  display: table-cell;
  width: 160px;
  text-align: center;
  padding-top: 5px;
  padding-bottom: 5px;
  float: left;
}

没有 display:table-cell 它也应该可以工作..所以..它是多余的 - 如果需要,您可以删除它。

关于html - 页脚在 chrome 中显示不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9341685/

相关文章:

html - 使 flex 的增长不要超过最大父级高度

html - 输入上神秘的额外左填充[类型 ="search"]

html - <div 样式显示 ="none"> 在表格内不起作用

html - 在右侧渲染一个 div 并保持导航居中

javascript - 自动化和简化跨浏览器支持

javascript - HTML 多头

html - CSS 复合输入选择器

css - 左右两个 div,自动宽度

css - 选择带有 Font Awesome 图标的选项

android - Phonegap App, Html/Css 安卓老浏览器调试