<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不垂直居中的问题解决
原文:http://www.cnblogs.com/fumj/p/3516994.html