CSS 解决表单单行文本框中的文字垂直居中问题 示例代码: <input style="height:40px;line-height:40px" value="test"> 必须同时指定height和line-height