css - IE/Firefox 中的填充和/或边距与 Chrome 不同

标签 css internet-explorer firefox margin padding

这是问题页面:http://www.alternativefreedom.com/grc275/a7/ 导航栏在 chrome 中看起来很完美,但在 IE 或 Firefox 中没有沿着右边缘排列。这是它的样子:

showing the bug

如有任何想法、想法和意见,我们将不胜感激。

最佳答案

跨浏览器/平台存在很多渲染差异。

为避免此类问题,请考虑使用 html5 样板文件:

http://html5boilerplate.com/

另外,看看这个:

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

它已经包含在 html5bp 中。

关于css - IE/Firefox 中的填充和/或边距与 Chrome 不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20572168/

相关文章:

html - 使用 CSS 创建形状后,如何将其中心用作另一个 CSS 形状的焦点?

javascript - 如何使用 IE 和 FF 一致地让 jQuery 以编程方式访问此选择列表中的项目?

html - 导航栏无法使用 bootstrap5 在移动设备上扩展

javascript - DOM : why is this a memory leak?

javascript - 如何防止由于不需要的递归而导致 IE 中的堆栈溢出

firefox - 如何使用 Xvfb 在 Firefox 中运行 Karma?

javascript - GWT 应用程序自 Firefox 41 起无法运行

html - Bootstrap 输入组内数字输入的溢出宽度

css - 为什么在使用 margin auto 居中元素时 max-width 的行为与 width 不同?

javascript - Bootstrap 网格 : Is this correct to replace col-xs-6 + col-xs-6 with col-xs-12+ (col-xs-6 & display:none)?