【问题标题】:HOw to give Padding bottom only for IE如何只为 IE 提供填充底部
【发布时间】:2018-03-07 16:58:09
【问题描述】:

我正在尝试使用向输入区域添加填充 -ms-padding-bottom:8px;在 IE11 中,但它不起作用有人可以帮助我吗 请。

【问题讨论】:

  • 您需要发布一个完整但最小的问题标记示例:minimal reproducible example 但我不确定此类前缀标签在 IE11 中是否有效。
  • Apply style ONLY on IE的可能重复
  • 输入{字体系列:GEInspiraSans;字体大小:18px;颜色:#2F3133;填充底部:6px; -moz-padding-bottom:8px; -ms-padding-bottom:8px; }
  • 它适用于 Mozilla 而不是 IE 。不知道有什么具体的方法可以添加。
  • Apply style ONLY on IE的可能重复

标签: html css


【解决方案1】:

您可以在 <head> 中使用条件标签来包含仅适用于 IE (6 -> 9) 的样式表。

<!--[if IE]>
    <link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]-->

this article

对于 IE 10+:

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
    .foo{background: red;}
}

仅适用于 IE 11:

_:-ms-fullscreen, :root .foo { background: red; }

【讨论】:

  • 条件 cmets 已从 IE 中删除,在 IE11 中不起作用。
猜你喜欢
  • 1970-01-01
  • 2021-01-30
  • 1970-01-01
  • 2015-09-14
  • 1970-01-01
  • 1970-01-01
  • 2015-03-22
  • 2019-12-25
  • 1970-01-01
相关资源
最近更新 更多