2
2

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.

スマホでフォントサイズが16px以下でもinputフォーカス時にズームインさせない

Last updated at Posted at 2019-03-01
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">

いつもinputは16px以上でとデザイナーの方に言っていたのですが、格好いいデザインなのでどうにかできないかといろいろやってたら上でできました。

iPhone、Androidともに拡大しない。(ここでいうAndroidは9を指します。)
Androidの場合maximum-scale=1を入れるとズームインできなくなるみたい。

なお、Androidの場合

<meta name="viewport" content="width=device-width,initial-scale=1">

のみでも拡大しない。前は拡大してたような…
JSでUA判別してViewport切り替えるのがベストなのでしょうか

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?