HTML cursor style and cursor Style

Source: Internet
Author: User

HTML cursor style and cursor Style
HTML cursor Style

Place your cursor over the corresponding text and place the mouse to display the effect 
Cursor: auto; Automatic
Cursor: all-scroll; Scroll up or down any direction
Cursor: crosshair; Cross Accuracy
Cursor: pointer; Hand
Cursor: wait; Wait
Cursor: help; Help
Cursor: no-drop; Cannot be released
Cursor: text; Text/editing
Cursor: move; Movable object
Cursor: vertical-text; Editable vertical text cursor
Cursor: n-resize; Up (North)
Cursor: s-resize; Change the size down (South)
Cursor: e-resize; Change the size to the right (East)
Cursor: w-resize; Change the size to the left (West)
Cursor: ne-resize; Change the size (North East) from top to right)
Cursor: nw-resize; Change the size (North West) to the left)
Cursor: se-resize; Change the size down to the right (South East)
Cursor: sw-resize; South West)
Cursor: col-resize; Horizontally changeable size
Cursor: row-resize; Vertical dimension change
Cursor: not-allowed; Disable
Cursor: progress; Processing
Cursor: default; System Default

Cursor: url ('#'); # indicates the address of the cursor file.

(Note that the file format must be. cur or. ani)

Custom (animation available)

Note: After a custom cursor is defined, add a general cursor to the end,

In case that the cursor defined by the url cannot be used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note:

Cursor attribute: Set the type (SHAPE) of the displayed cursor ).

This attribute can have multiple values separated by commas;

If the first value cannot be found but cannot be displayed, the second value will be used, and so on;

If all values are unavailable, this attribute will not work and the cursor will not be changed.

For example: {cursor: pointer, wait, help;}, from pointer to wait, and then to help. If it is not applied, the cursor attribute does not play any role.

 

Here is an example of a "hand" cursor:

:

Cursor: pointer; Hand

 

The first is the intra-row style: (intra-row style: Write the CSS style in the tag)

<Table border = "1"> <tr class = "pointer" style = "cursor: pointer;"> <td> cursor: pointer; </td> <td> hand </td> </tr> </table>

The second is internal style: (internal style: Located in

<! -- Here is the content in the style --> <style type = "text/css">. pointer: hover {cursor: pointer ;}</style> <! -- The content in the body --> <body> <table border = "1"> <tr class = "pointer"> <td> cursor: pointer; </td> <td> hand </td> </tr> </table> </body>

 

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.