Home  >  Article  >  Web Front-end  >  How to hide the cursor in jquery

How to hide the cursor in jquery

藏色散人
藏色散人Original
2021-11-17 10:49:361350browse

How to hide the cursor in jquery: 1. Open the corresponding web page code file; 2. Hide the mouse cursor through the "$('body').css('cursor','none');" code .

How to hide the cursor in jquery

The operating environment of this article: Windows 7 system, jquery version 3.2.1, DELL G3 computer

How to hide the cursor in jquery?

Specific problem description:

How to use jquery to hide the mouse cursor in the entire web page.

I tried this

$(document).ready(function(){
        $(body).css({
           'cursor' : 'none'
        });
});

But this does not work for all browsers. Is there any plugin to achieve this.

Solution

$('body').css('cursor','none');

Recommended study: "jquery video tutorial

The above is the detailed content of How to hide the cursor in jquery. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn