0
0

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 3 years have passed since last update.

Safariの表示でフォントサイズが変わってしまう

Posted at

不具合の概要

HTMLタグの::beforeに対しCSSプロパティでcontentにテキスト、font-sizeに文字サイズを指定。
Google Chromeやその他OSでは意図した通りであったが、Safari版だけフォントサイズの指定が効かず小さく(検索すると大きく表示されるケースもある様子)表示されてしまう。

対処

cssに以下を追記

css
-webkit-text-size-adjust: 100%;

参考にさせていただいた記事

スマホページだけフォントサイズ指定がうまくいかない場合

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?