Enable IE6 (opera) to support the font

Source: Internet
Author: User

I have always liked the font, which is also a matter of personal aesthetics. Recently, I found that IE6 and operabrowser did not catch a cold in setting the font in CSS, after a long morning of struggle, I finally found a solution. How can I make opera and IE6 support? In fact, the solution is very simple:

1. Let IE6 support and add a statement:

<HTML lang = "ZH-CN"> Add the red part declaration to the HTML tag of the webpage. Framework Resource Sharing

2. Enable the Opera Browser to support, and implement it through CSS compatibility remedy:

CSS code: font-family: "Microsoft yahei", ""! Important; Note: The "! Important "must be added; otherwise, it is invalid.

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.