chrome下input[type=text]的placeholder不垂直居中的问题解决
<input type="text" placeholder="search word" name="p" />
但是在chrome下显示的search word并不能垂直居中。
后来了很久终于在stackoverflow上到了对应的方法。
input标签placeholder属性参考:://stackoverflow/questions/4919680/html5-placeholder-css-padding-problem
就是一句:把line-height设置为normal
line-height: normal; /* for non-ie */
line-height: 22px\9; /* for ie */
line-height: 22px\9; /* for ie */
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论