摘要: Html5输入框支持placeholder,但是在定义文本框中定义placeholder存在兼容问题 但是在chrome下显示的search word并不能垂直居中。在stackoverflow上找到了对应的方法。参考地址:http://stackoverflow.com/questions/4919680/html5-placeholder-css-padding-problem解决方法是:把line-height设置为normalCSS定义如下input{ line-height: normal; /* for non-ie */ line-height: 22px\9; /* ... 阅读全文
posted @ 2014-01-03 11:23 T#S 阅读(36910) 评论(0) 推荐(0) 编辑