html - IE 11 以不同于其他浏览器的方式显示 CSS

标签 html css google-chrome pseudo-element internet-explorer-11

我有一个正在处理的元素,它在不同的浏览器中显示不同(想象一下)。 CSS 在我尝试过的每个浏览器(chrome、safari、firefox)中都运行良好,除了 IE11(同样,想象一下)。这是 IE 版本的图片:

enter image description here

这是应该的样子:

enter image description here

现在,我查看了 Chrome 和 IE 上的开发工具,结果如下。

即:

enter image description here

Chrome : enter image description here

因此,如图所示,在 IE 中,bwizard-steps button::beforebwizard-steps button::after 被标记出来,但它们在 Chrome 中按预期工作。

知道为什么会这样吗?我查了一下,IE11 应该支持 ::before::after 标签。然而,它显然无视它们。我什至尝试过为 IE 进入兼容模式,这看起来更糟。

最佳答案

我遇到过类似的问题。

对我有用的解决方案是给按钮 overflow: visible;

工作示例 (IE9+):http://jsfiddle.net/aBfF8/1/

关于html - IE 11 以不同于其他浏览器的方式显示 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21710213/

相关文章:

html - 导航上的下拉列表和元素之间的距离

html - 没有SVG是否可以有这种悬停效果

css - 如何在 Bootstrap 4 中让 .py-md-6 覆盖 .p-3?

flash - 固定位置在 Chrome 中损坏,后面有 Flash

html - 如何在 IE7 中使一个空的 anchor 标记可点击?

html - psd 到 html 尺寸

html - Chrome 在加载时随机滚动到页面的中/下部分

javascript - JS 确认框在 Chrome 中行为异常

css - 如何水平居中 <select> 元素

html - 居中左对齐的 Bootstrap 列,其中包含卡片