IE 下的按钮标签(input、button)会随着文字的增加导致文本左右两侧的间距越来越大。该问题存在于 IE6/IE7,IE8~IE10 没发现类似问题。一般情况下,只要给按钮标签设置 overflow 属性的 visible 值,按钮就可以在 IE 下显示正常了。

1、htmlCode

<input type="button" value="ie respects my padding" />

2、cssCode

padding: 10px;
overflow: visible;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2021-08-31
  • 2021-05-28
  • 2021-08-18
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案