CSS properties (Mouse properties)

Source: Internet
Author: User
Tags list of attributes
CSS we know that when the mouse to move to different places, when the mouse needs to perform different functions, when the system is in a different state, the shape of the mouse will change.


use CSS to change the properties of the mouse, that is, when the mouse moved to different elements of the object, so that the mouse with a different shape, pattern display.


in CSS, this style is implemented through the "cursor" attribute. Cursor property has a number of property values, let's take a look at its detailed list:

Let's take a look at the following code:

<title>changemouse</title>
<body>

<p style= "font-family: Running script font-size:16pt;color:red >
Please move your mouse to the appropriate position to view the effect. </p>//* sets the name, size, and color of the font *//
<div style= "font-family: line style; font-size:24pt;color:green;"
//* Sets the font name, size, green *//
<p><span style= "Cursor:hand" > Hand shapes </span><br>
//* Set the mouse properties to the shape of the hand
<span style= "Cursor:move" > Move </span><br>//* Set Mouse properties to move *//
<span style= "Cursor:ne-resi" ze > Reverse direction </span><br>
//* Set the mouse property to the opposite direction *//
<span style= "cursor:wait" > Wait </span><br& gt;//* set mouse properties to wait *//
<span style= "Cursor:help" > Help </span>//* Set mouse properties for help *//
</p>
</d Iv>
</body>

The effect of the above code, please click here

CSS properties here, we see that there are a lot of properties, but you just have to figure out what they mean, it will be convenient to use. When you apply, you can also refer to the detailed list of attributes that I provided for you.
The next chapter will introduce you to CSS positioning.







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.