Custom mouse style-cursor

Source: Internet
Author: User

Before writing the text, I always like to talk a few nonsense words. In fact, my blog's problems are generally encountered at work. To avoid forgetting, I 'd better write it out!

They are all details, although almost no one looks at them! Take your own notes for future search! Hey .....

This is also a requirement of the product. It requires the image switching script to have a magnifying glass effect in the big image.

A brain turns, a magnifier, and you just need to change the mouse style to a magnifier image. In college, you used to change your computer's mouse to a colorful one.

Css is certainly supported. I searched the internet and sorted it out as follows:

General css syntax:

[Css]
. Demo {cursor: url ('path'), auto;} // IE, FF, chrome

. Demo {cursor: url ('path'), auto;} // IE, FF, chrome
Note:

1. Icon format-ico: preferably ico format. I tested my browser with ico, but I didn't find any problem. The icon format is based on different browsers: IE supports the cur, ani, ico formats. FF supports bmp, gif, jpg, cur, and ico formats. They do not support the ani format or GIF animation format. Therefore, it is better to save images in the cur or ico format.

2. Icon size-32*32:

It is better to be 32*32, Otherwise other sizes will lead to inconsistent size of the picture rendered by the browser.

Simple! As a matter of fact, I have summarized a problem from my graduation project to my current project. The complicated problems are made up of simple points one by one, and I just want to make a breakthrough one by one.

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.