Google Chrome does not support small fonts below 12 PX. Some good solutions can be found on the Internet. If you are interested, refer, I hope to help you. Google Chrome does not support small fonts below 12 PX. It may be because of the user experience.
There are some articles on the Internet that can be used:
The Code is as follows:
-Webkit-text-size-adjust: none;
However, since chrome 27, the support for this attribute is canceled.
Are there other solutions to this problem?
Google Chrome supports CSS scaling, so we can make a fuss about it:
The Code is as follows:
-Webkit-transform: scale (0.5 );
Since the minimum size is 12 PX, the scale is based on 12 PX,
You can also use-webkit-transform-origin-x: 0; To solve the margin-left displacement problem after scaling:
The Code is as follows:
. Test_tag {
Font-size: 12px;
-Webkit-transform-origin-x: 0;
-Webkit-transform: scale (0.5833333333333334 );
}
The scale value is calculated as follows: 7/12 = 0.5833333333333334