Home  >  Article  >  Web Front-end  >  How to restrict Google from automatically adjusting font size_html/css_WEB-ITnose

How to restrict Google from automatically adjusting font size_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:57:291126browse

Google’s default font size is 12px. When font-size

Recently when I was writing code and playing, I also encountered

The effect displayed in FF and chrome is as follows (FF on the left, Google on the right, I did not set the font size)

Use the text-size-adjust attribute to restrict Google from adjusting the font size. After I added the following style, it worked normally

   1: body{
   2:     font-size: 20px;
   3:     -webkit-text-size-adjust:none;
   4: }

The screenshot from Google is as follows:

Source: http://www .ido321.com/652.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn