Cursor: Changing the mouse style

Source: Internet
Author: User

Introduction: Today, look at a layui front-end frame of Baidu, see a disabled icon style, the mouse will become a custom image style, it is to think that the cursor can also customize the picture path?! Has never been used before.

After using a bit, encountered a lot of problems, compared to the format of the film, suffix name and size problems, and then checked the relevant information.

Syntax: Cursor:url (path), auto;

Auto is required to follow the standard style, the browser will first load the path you set, if not, then load Auto Custom, Auto,default, etc. can be.

About the format of the picture:

1, if using pictures (gif,png), etc., cannot exceed 32*32, otherwise the browser does not know

2,ie Browser does not know the picture format of Gif,png etc.

Standard browsers such as 3,firefox do not support the. ani format.

Standard browsers such as 4.firefox do not seem to support animated. cur files.

5, the mouse style file is generally. cur. ani format. IE all support

Of course, jquery can also be achieved by:

$ (document). Ready (function () {

$ (' mouse '). Hover (

function () {$this. css ({cursor: "URL (cvte.cur), Auto"})},

function () {$this. css ({cursor: "URL (), Auto"})})

})

<div class= "Mouse" ></div>

Cursor: Changing the mouse style

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.