Home > Web Front-end > Front-end Q&A > How to hide the cursor in jquery

How to hide the cursor in jquery

藏色散人
Release: 2021-11-17 10:49:36
Original
1371 people have browsed it

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'
        });
});
Copy after login

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

Solution

$('body').css('cursor','none');
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template