我有一个输入字段:
<input type="text" placeholder="whatever">@H_502_4@款式:
input { margin: 0; padding: 0 6px; font-size: 19px; line-height: 19px; height: 36px; width: 255px; }@H_502_4@问题是线程高度对于webkit CHROME中的占位符并没有起作用.因此输入字段中的文本以丑陋的方式对齐.有人看到这个,现在怎么解决? @H_502_4@谢谢
解决方法
看着你的标签,我假设你正在写一些像…
<input type="text" placeholder="whatever">@H_502_4@不幸的是,当涉及到占位符的造型时,Chrome会将您的双手握住,选择器就像这样.
input::-webkit-input-placeholder {}@H_502_4@您可以在Styling the HTML Placeholder中找到样式选项,问题和支持的浏览器