...">

Why can't I change the cursor in standard mode?

Example (tested in Chrome):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <TITLE>testing cursor change</TITLE> </HEAD> <BODY> <p style="cursor: url('a/web/images/catcursor.cur')" >only works in quirks mode</p> </BODY></HTML> 

If I change Doctype to 1.0, it reports that it is in standard mode and the cursor no longer changes. How do I get around this?

Why I want: I create a network game, and at some point the cat attacks the cursor, so I want the pointer to look upset.

+1
source share
1 answer

You need to specify a predefined cursor:

 <p style="cursor: url('a/web/images/catcursor.cur'), default"> 

A predefined value is required for the cursor property to be valid. Without it, it is not valid, so browsers in standard mode should completely ignore it.

+5
source

Source: https://habr.com/ru/post/1394849/


All Articles