Button 在IE中的默认显示与其他浏览器大相径庭,button的label越长,button的宽度就成比例的放大,padding的设置完全失效。用IE打开本页看看下面这个button,基本上是场灾难~
    在IE中,button的默认overflow是clip (奇怪的参数),在这种情况下width:auto不起作用,所以加上overflow:visible,搞定!
<button style="overflow: visible; width: auto;">this is a button with width:auto;overflow:visible;</button>

相关文章:

  • 2022-01-20
  • 2021-11-28
  • 2021-07-24
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
相关资源
相似解决方案