[WinXP] Chrome uses CSS styles to force a solution to the mouth of the Microsoft Jas font

Source: Internet
Author: User

XP use Chrome (also including FF, opera, IE and other support CSS definition style browser), for the beautiful want to force the page font display as Microsoft Black, but on some sites, some characters will not be displayed, such as: www.taobao.com,https:// Www.zybuluo.com/mdeditor, the reason is because these sites use "icon Font", and Microsoft ya Black can not be displayed. This question is estimated to have been met by many people. So, can the "Fish and Bear paw"? The answer is yes, change your custom style to the following code:

*:not ([class*= "icon"]): Not (i) {font-family: "Microsoft Yahei"!important;}  {Text-shadow: silver 0px 0px 1px!important;}

The first line forces the non-icon font to appear as Microsoft Jas, and the icon font is displayed as is;

The second line is an enhancement that adds a shadow to the font of the Web page (only some browsers support this feature and require a certain amount of CPU and memory overhead).

The above measurements are effective.

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.