在Firefox的“A”中,Chrome / IE上没有显示:
<button type="button" style="width:24px; text-align:center; vertical-align:middle">A</button>
注意以下内容具有相同的结果:
<button type="button" style="width:24px;">A</button>
编辑:现在似乎在Chrome 5.0中修复
解决方法
在Chrome中测试,您需要添加
padding: 0px;
到CSS。