摘要: 在css中如果我们定义了input高度在输入时会发现光标位置靠上了不在居中了,在Chrome浏览器中,当设置了line-height时,input无文字,光标高度与line-height一致;input有文字,光标高度从input顶部到文字底部。当没有设置line-height时,则是与font-s 阅读全文
posted @ 2016-12-02 16:26 王永峰的博客 阅读(6054) 评论(0) 推荐(1) 编辑