The original CSS in the!important is so use _ experience Exchange

Source: Internet
Author: User
Click to view the results:

<textarea id="runcode47430"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/> <title>untitled document</title> <style type=" Text/css "> aa{Font-fami Ly:verdana, Arial, Helvetica, Sans-serif; font-size:12px; Background-color: #FF0000!important}. bb{Font-family:verdana, Arial, Helvetica, Sans-serif; font-size:12px; Background-color: #FF0000; } </style> </pead> <body> The following two div styles are basically the same, but the first plug-in (understand my meaning on the line) style: Background-color a!important behind, So, although the first Div line CSS also defines the Background-color, but it is referring to the plug-in Background-color, the other is not specified!important, is covered by the style in the line. Included in class: Styles not included in the!important style </body> </ptml></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh 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.