【问题标题】:How to specify IE 11 for bottom element [duplicate]如何为底部元素指定 IE 11 [重复]
【发布时间】:2015-11-22 12:46:10
【问题描述】:

如何在我的 CSS 中指定 IE 11?我有其他IE占如下。

#teleport {

bottom: -230px;

bottom: -280px\9; /* IE 8 and below */

*bottom: -280px; /* IE 7 and below */

_bottom: -280px; /* IE 6 */

}

【问题讨论】:

  • stackoverflow.com/questions/20541306/… 顺便说一句,为什么你应该针对 IE11(只是好奇)?连 IE 11 都不能正确处理你的 CSS?
  • 因为我的<div> 在 IE10 和 IE11 中没有位置。其他浏览器都可以。
  • 您是否尝试使用填充或边距而不是负底部?也许这不是 IE11 的错。

标签: css internet-explorer-11


【解决方案1】:
    _:-ms-fullscreen, :root .ie11up, #teleport { bottom: -280px; }

     @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
   .ie10up, #teleport{bottom: -280px; }
}

问题解决了。

【讨论】:

    猜你喜欢
    • 2011-07-05
    • 1970-01-01
    • 1970-01-01
    • 2018-01-17
    • 2020-11-29
    • 2018-12-30
    • 1970-01-01
    • 1970-01-01
    • 2018-09-19
    相关资源
    最近更新 更多