【问题标题】:Changing the width of input box in IE改变IE输入框的宽度
【发布时间】:2020-11-12 22:03:27
【问题描述】:

我已经为我的输入设置了适当的宽度,它在除 IE 之外的所有浏览器上都能正常呈现。对此的任何帮助将不胜感激。我什至试过这个,但没有用。

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
 width: 50px;

}

【问题讨论】:

  • 您还应该提供相关的html代码或与问题相关的任何其他代码。它可以帮助我们更好地理解问题。如果没有a minimal, reproducible sample,我们将无能为力。感谢您的理解。

标签: css internet-explorer sass


【解决方案1】:

我一直被 IE 和 min-width 所困扰,因为 IE 完全忽略了 min-width。这是我所做的:

    #element {
    min-width: 70px; 
    width: 70px;
    }
    
html>body #element { 
    height: auto;
    }

希望有用

【讨论】:

    猜你喜欢
    • 2013-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-21
    • 2017-04-18
    • 2011-06-10
    • 1970-01-01
    相关资源
    最近更新 更多