将line-height设置为对象的height时,此对象中的文字则会垂直居中。但给若给这个对象设置border则会出现问题。 转载于:https://www.cnblogs.com/lanyb009/p/9248757.html