Introduction to the example of loading order for style and class in CSS

Source: Internet
Author: User

The load order of style and class in the end who first, who will cover who, in the next example would be a detailed introduction, I hope to help you

Copy Code code as follows:
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title>test</title>
<meta name= "Author" content= "Administrator"/>
<!--date:2013-10-09-->
<style type= "text/css" media= "screen" >
. aa{
cursor:wait;
Color: #f00;
}
</style>
<script type= "Text/javascript" >
function Clickd (obj) {
Obj.style.color = "#f00";
Obj.style.cursor = "Wait";
Obj.classname = "AA";
}
</script>
<body>
<div onclick= "CLICKD (This)" style= "Cursor:pointer" > Click to try </div>
</body>


This style of writing will not overwrite the cursor property of the character, with the property in style as the final result!

The style is overwritten by the wording in the annotation.

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.