CSS debugging troubleshooting list

Source: Internet
Author: User

When developing CSS on the Web page display layer, you may find that the style is not applied. This problem needs to be solved by using the firebug plug-in Firefox.

There are usually three situations where the defined style is not applied.

1. Style files are not loaded successfully (low-level errors, but sometimes occur in complex environments)

2. the CSS file is not referenced (low-level errors, but some messages are sent in the case of responsibility)

3. style conflicts (Advanced errors require troubleshooting)

If the style file is not loaded successfully, you can view it through the network of firebug. With the help of firebug, you can easily find out which files are not loaded successfully, which may include CSS files. The files are marked in red.

 

If the first case does not exist, check whether the CSS file is referenced. It is determined by the CSS list of firebug.

.

If the second case does not exist, check whether there is a style conflict. If you introduce a complex css framework as a general style, you define a set of CSS for special display of the project. When two sets of CSS are simultaneously included in a webpage, the risk of conflict may occur. This is, you can select a webpage element under firebug to view the "calculated style", such as clicking font-family, firebug will show you which CSS file the style is defined in.

 

Good luck. Less overtime, more time to accompany your family.

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.