Getting started: Using CSS style sheets to change the style of the mouse

Source: Internet
Author: User
Tags define
css| Mouse | style sheet

People accustomed to Windows must be familiar with a wide variety of mouse styles. When the mouse moves to different places, when the mouse to perform different functions, when the system is in a different state, will make the shape of the mouse changed. and on the Web page often only when the mouse on the hyperlink to appear a hand-shaped, in other places does not seem to change. It's not as harmonious as a Dynamic Web page. In fact, CSS makes it easy to define many kinds of mouse shapes. Using the method described in this article, you can set the different styles of the mouse in place of the page.

To create a hand-shaped mouse style effect in Dreamweaver3:

1, press F7 (or click on the Quick Launch bar, like "Gossip map" icon), bring up the CSS panel, select None, click the Edit icon in the lower part of the panel, press the "new" button on the pop-up "Edit Style Sheet" dialog box, and in the "New Style" pop-up dialog box, select Make Custom Style, which is added to the source code of the Web page.

To change the mouse to another shape, just select a different style when you define the "cursor" property in the second step. The meaning of each property value is as follows:

Crosshair: Accurate positioning of the "ten" shape;
Text: "I" form;
Wait: Waiting, "hourglass" shape;
Default: Defaults pointer;
Help: Assist, with tail arrow;
E-resize: Arrow toward right;
Ne-resize: arrow to top right;
N-resize: arrow upward;
Nw-resize: arrow to the top left;
W-resize: Arrow toward left;
Sw-resize: Arrow downward to the left;
S-resize: arrow downward;
Se-resize arrow to the lower right;
Auto: Automatically, the mouse in accordance with the default state according to the elements on the page to change their style.

Understand the meaning of the above property values, the shape of the mouse in your grasp, need to let the mouse in there to change why the shape, as long as the above operation on the line. Note that you can only define one mouse style at a time, and if you use multiple-style mouse graphics on one page, define multiple "class" and load them when you choose.



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.