Home > front end >  Page font size does not change with browser zoom
Page font size does not change with browser zoom

Time:01-28

The effect is smaller fonts with the scale of the browser, want to ask, is there any way a fixed font size, achieve the font size is not the purpose of the changes over the browser, just in the page of text, word size remains the same, most is in Chinese, part of the Arabic numerals

CodePudding user response:

Top,,,,,,,,,,,,,,,,,,

CodePudding user response:

The top...

CodePudding user response:

Have a great god in...

CodePudding user response:


If the font is vw - the size of the unit, the vh,, vmax, vmin fonts with the window size scaling,
To maintain a fixed value, we should set the font for px - the size of the unit, or rem em, and check the CSS @ media screen Settings,
Also check whether there is a font scaling of JS code, etc

CodePudding user response:

Positive solution, upstairs to see if the font, size, first of all, for a fixed value, such as 16 px, 1 em... Rather than 80% category,
If sure is a fixed value, to have a look at the CSS @ media, remove @ the Settings of the font in the media

CodePudding user response:

Quote: refer to 4th floor liaitan response:

I checked according to what you said, and wrote a separate sheet of the interview, may be I didn't express clearly, I mean, is in accordance with the CTRL rolling roller to adjust browser scaling, I tried it on as you suggest, font units for px, drag the browser window to change the size of the browser window, the font size remains the same, but with CTRL + pulley that way get bigger or smaller, font units for vw, change the size of the browser window and CTRL + pulley scaling, the font will be smaller,

CodePudding user response:

The
reference 4 floor liaitan reply:

I checked according to what you said, and wrote a separate sheet of the interview, may be I didn't express clearly, I am a mean, according to the CTRL rolling roller to adjust browser scaling, I tried it on as you suggest, font units for px, drag the browser window to change the size of the browser window, the font size remains the same, but with CTRL + pulley that way get bigger or smaller, font units for vw, change the size of the browser window and CTRL + pulley scaling, font will be smaller,

CodePudding user response:

Can directly limit cannot use the Ctrl + - way to control the size of the form, otherwise some unanswered, because this is geometric scaling, and browser functionality,

CodePudding user response:

refer to the eighth floor qq_29594393 response:


Is the case, because the development is the development of time is according to the 1920 resolution, but there are some users of the project demonstration laptop sometimes want to use the 1366 resolution, then home page show doesn't open, dislocation, so the way to use Ctrl + - zooming browser, was originally the appropriate font, after scaling is somewhat small

CodePudding user response:

Brother, there is a solution, kneel to beg
  • Related