Chrome: compatible with chrome

Source: Internet
Author: User

Chrome: compatible with chrome

-Webkit-text-size-adjust: none was found in the css style during the demo today. After du Niang, the role of this style is: Solve the Problem in Chrome browser, set the font size smaller than 12px.

 

Example:

P1 {

Font-size: 11px;

};

P2 {

Font-size: 12px;

}

When opened in Chrome, the font size of the two paragraphs is the same. This is because Chrome will change the font smaller than 12px to 12px by default, so the font size of p1 and p2 sections will be the same.

This problem can be solved only when the style of p1 is changed to the following:

The Code is as follows:

P1 {

Font-size: 11px;

-Webkit-text-size-adjust: none;

}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.