<input type="text" placeholder="search word" name="p" />
但是在chrome下显示的search word并不能垂直居中。
后来找了很久终于在stackoverflow上找到了对应的方法。
就是一句:把line-height设置为normal
line-height: normal; /* for non-ie */
line-height: 22px\9; /* for ie */
so fix it...
<input type="text" placeholder="search word" name="p" />
后来找了很久终于在stackoverflow上找到了对应的方法。
就是一句:把line-height设置为normal
line-height: normal; /* for non-ie */
line-height: 22px\9; /* for ie */