Home > Web Front-end > HTML Tutorial > : How to modify the default minimum font size of 12px in 360 and Google Chrome browsers? _html/css_WEB-ITnose

: How to modify the default minimum font size of 12px in 360 and Google Chrome browsers? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:43:47
Original
1063 people have browsed it

I checked a method on the Internet:

html,body{

-webkit-text-size-adjust:none;

}
But this method Adding it to the style still failed to change the 360 ​​and Google minimum 12px fonts.
So I used a style specifically for Google
@mediascreenand(-webkit-min-device-pixel-ratio:0){
/* chrom, safari style */
}
But This method only works on Google, not 360.

Dear masters, please help!


Reply to discussion (solution)

Ask for answers online!

Found that the English 9px setting is invalid under chrome. You can use -webkit-transform: scale(0.75); 12*0.75 =9 to get the small font (the size is scaled to 0.75 times under the chrome browser)

This is the minimum font value set by chrome by default

?Do you have a photo?, male??Self?!

Come on LZ, come on LZ?!

Try using jquery,

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template