3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Android4.xでplaceholderのline-heightが効かない問題

Posted at

備忘録的な。

Android4.x において、placeholderを使用した際、
line-heightの値を変更しても何も変化が起きなくてハマり。

input type="text"の上の方に、placeholderがびたーっと張り付く問題。

下記サイトに書いてあったのを試したら解決した。

css
.hoge {
  line-height: normal;
}

参考:http://diao.it/blog/2014/01/07/android-4-placeholder-line-height/

自分ひとりじゃ、これに辿り着ける気がしない。。
ありがとう、上記サイトの人。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?