Firefox handles the header issue in jquery.

Source: Internet
Author: User

See the following:Code

<SCRIPT type = "text/JavaScript" src = "jquery-1.3.1.js"> </SCRIPT>

<SCRIPT type = "text/JavaScript">

$ (Function (){

$ (': Header'background .css ('background-color',' # ff7300 ');

}) </SCRIPT>

<H1> DDD

<H2> DDD </H2>
<H3> DDD <H4> DDD </H4>
<H5> DDD </H5>
<H6> DDD </H6>
<H7> DDD </H7>

<H8> DDD </H8>

We know that only h1-h6 labels are in HTML code, while H7 and H8 are completely incorrect, but in Firefox (3.6.8), H7 and H8 have background color settings.

The Firefox browser finds that H7 and H8 are displayed in one row (Block-level elements occupy one row). Therefore, it can be determined that Firefox does not use them as normal labels, but jquery script errors. Wait for change...

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.