Skip to content

Instantly share code, notes, and snippets.

@EvilWolf
Last active July 8, 2016 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvilWolf/32faaa5c22eff10b39816b901dc984f4 to your computer and use it in GitHub Desktop.
Save EvilWolf/32faaa5c22eff10b39816b901dc984f4 to your computer and use it in GitHub Desktop.
Убирает увеличение шрифта на мобильных устройствах в случае если браузеру кажется что он слишком маленький.
1.
<meta name = "viewport" content="width=device-width>
Выставляем вьюпорт именно как width=device-width
--или--
2. В css пишем стиль для блока где шрифт становится болье:
p {
max-height: 1000em;
}
1000em можно заменить на любое другое значение.
Подробнее про Font Boosting
https://habrahabr.ru/post/214559/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment