CSS cursor URL usage format detailed

Source: Internet
Author: User
CSS cursor URL usage format: css:{cursor:url (' icon path '), auto;}//ie,ff,chrome Browser can

Instance code: Html{cursor:url ("Http://ued.taobao.com/blog/wp-content/themes/taobaoued/images/cursor.ico"), auto;}

Parsing: The previous URL is a custom mouse icon path, the 2nd parameter auto is the CSS standard cursor style, can be replaced by other properties (such as Pointer/default, etc.)!
(Note: W3school recommended the 2nd parameter must define a normal cursor, in case the URL defines the available cursors to make available!) In addition, you can omit the 2nd parameter under IE)

To customize the mouse display icon, you need to pay attention to the following issues

Format of the icon:

IE supports cur,ani,ico these three formats, FF supports bmp,gif,jpg,cur,ico these formats, does not support ANI format, and does not support GIF animation format, so it is generally good to save the URL reference picture as ICO or cur format!


Size of the icon:

The size of the mouse picture recommended size is 32*32, otherwise it may cause the problem of inconsistent icon size!


In addition, in the browser, the mouse picture does not display the problem, most of the problem in the mouse picture URL path Reference, you can try to separate the absolute and relative path reference.

Finally, enclose the possible values for the cursor property: (All major browsers support the following cursor properties)

  • 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.