XML/HTML Code复制内容到剪贴板
- <button style="cursor:pointer;vertical-align: middle;" >删除</button>

这时候垂直不居中。
XML/HTML Code复制内容到剪贴板
- <button style="cursor:pointer;vertical-align: middle;height:21px;" >删除</button>

这时候垂直居中了。对它添加了height样式。
以上这篇浅谈浏览器的兼容模式下的button中文字垂直方向不居中显示就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。