Caution: the CSS code is written in different order, resulting in different display effects.

Source: Internet
Author: User

We accidentally discovered that when the font and line-height attributes are applied to the same HTML Tag in CSS at the same time, we had to be careful. The writing sequence of the two is different, which may lead to different display effects.
That is:
>>> If you write font first and then line-height, the result is normal.
>>> If line-height is first written and font is written, the effect of line-height definition will be lost. This bug occurs in IE, Firefox, and opera.

For more information, see the following.Code:<P> H1: </P> IECN. Net-Focus on Web technologies and experience development! IECN. Net-Focus on web technology and experience development! <P> Div: </P> IECN. Net-Focus on Web technologies and experience development! IECN. Net-Focus on web technology and experience development! <P>
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]

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.