CSS controls the Mouse shape

Source: Internet
Author: User

CSS controls the Mouse shape
 
 
 
On a webpage, the mouse is usually in the arrow shape. When pointing to a link, it becomes a hand shape, and when the webpage is downloaded, it becomes an hourglass shape ...... This seems to be a convention. Although such a design can let us know the current status of the browser or what we can do, it seems that these cannot fully meet our needs. Taking the link as an example, it can point to a Help file, or a forward or backward page. It cannot be explained if you rely on the same hand-shaped mouse for so many functions. Fortunately, CSS provides up to 13 mouse shapes for us to choose from.

The basic format is as follows:

Cursor: Mouse shape parameter

CSS Mouse shape parameter table:

CSSCode

Mouse shape

Style = "cursor: Hand" hand shape
Style = "cursor: crosshair" Cross
Style = "cursor: Text" Text
Style = "cursor: Wait" hourglass
Style = "cursor: Move" Cross arrow
Style = "cursor: Help" Question mark
Style = "cursor: E-resize" right arrow
Style = "cursor: N-resize" top arrow
Style = "cursor: NW-resize" top left arrow
Style = "cursor: W-resize" left arrow
Style = "cursor: S-resize" bottom arrow
Style = "cursor: Se-resize" bottom right arrow
Style = "cursor: Sw-resize" bottom left arrow

You can also customize the mouse style so that the mouse is the image you want.
Style = "cursor: URL (http://image2.sina.com.cn/gm/ol/cross/mouse/arrow40.cur )"
 

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.