Let's talk about fonts in IE8.

Source: Internet
Author: User

When I changed the page CSS yesterday, I found that some text was embedded in <span> <font> text content </font> </span>, I have defined the font-size 11px for the span style. In IE7, there is no problem. In IE8, the font is not controlled by CSS, no matter how I change the font-size, the size remains unchanged. However, when the IE font size (View-> text size) is changed, the size of the text will change accordingly.

 

Later, I asked my colleagues to understand the reason that I didn't define a style for the <font> label. Originally in IE7 and earlier versions, it will automatically inherit the style settings of the higher level, however, in IE8, the text will use the <font> style, and I have not set the style for font. In this case, ie will take over the style of the text, as a result, the font of IE is changed.

 

I have never worked on the UI before. It's a headache !!!

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.