HTML5 placeholder css padding

后端 未结 14 1797
失恋的感觉
失恋的感觉 2020-12-04 06:49

I\'ve seen this post already and tried everything I could to change the padding for my placeholder but alas, it seems it just doesn\'t want to cooperate.

Anyway, her

14条回答
  •  广开言路
    2020-12-04 07:10

    I found the answer that remedied my frustrations regarding this on John Catterfeld's blog.

    ... Chrome (v20-30) implements almost all styles but with a major caveat – the placeholder styles do no resize the input box, so stay clear of things like line-height and padding top or bottom.

    If you are using line-height or padding you are going to be frustrated with the resulting placeholder. I haven't found a way around that up to this point.

提交回复
热议问题