【吐槽】:做一个手机网站,在火狐和360浏览器以及百度浏览器上placeholder总是不能居中显示,头大了。
然后各种疯狂找资料,终于I success :<http://stackoverflow.com/questions/4919680/html5-placeholder-css-padding>
笑了。
【解决方案】:我们一般设置input的高度的css应该是这样的:height:xxpx;line-height:xxpx;那么,我们只需要把input的line-height的值改为normal即可。