chrome下input[type=text]的placeholder不垂直居中的问题解决
生活随笔
收集整理的這篇文章主要介紹了
chrome下input[type=text]的placeholder不垂直居中的问题解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http://blog.csdn.net/do_it__/article/details/6789699
?
<input type="text" placeholder="search word" name="p" />
?
但是在chrome下顯示的search word并不能垂直居中。
?
后來找了很久終于在stackoverflow上找到了對應的方法。
參考:http://stackoverflow.com/questions/4919680/html5-placeholder-css-padding-problem
就是一句:把line-height設置為normal
?
line-height: normal; /* for non-ie */
line-height: 22px\9; /* for ie */
總結
以上是生活随笔為你收集整理的chrome下input[type=text]的placeholder不垂直居中的问题解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HTML5按钮的点击态问题
- 下一篇: 告别2013拥抱2014