Help us understand the problem. What is going on with this article?

iOS版safariのfont-size拡大バグ

More than 5 years have passed since last update.

iOS版safariで、font-sizeが勝手に拡大されるというバグが時々発生する。

html上もcss上もなんら不備はないのに、特定の箇所だけ突然拡大されて表示されてしまうのでなかなか厄介。

どうやら文字サイズの自動調整機能が勝手に発動しているらしい。

というわけで、

body {
    -webkit-text-size-adjust: 100%;
}

としてやって、文字サイズ調整機能自体を無効にしてしまうことで解決。

ただ、これをやるとブラウザの拡大機能を使った時に文字サイズが大きくならないので、そのへんはjsでiOS safariのみに適用するとか調整が必要そう。

なお、原因はよくわかっていないので時間があるときに調べておきたい。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした