Home >Web Front-end >Front-end Q&A >How to change mouse shape in html
htmlHow to change the shape of the mouse: 1. Use the cursor attribute of CSS to change the shape of the mouse pointer, code such as ".a{ cursor:hand }"; 2. Use third-party controls to change the shape of the mouse pointer.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
CSS/HTML Change the shape of the mouse pointer
There are two ways to change the shape of the mouse pointer; the first one: use the css cursor attribute to change the shape of the mouse pointer. The other is: using third-party controls, and the one I use most often is the first: using css style sheet to change the mouse pointer shape
Let's look at the first one first: use the cursor attribute to change the mouse pointer shape.
Sometimes we don’t need text or pictures to add links, and we also want the mouse style when adding links. This uses our css style sheet to mouse pointer shape. Please set some properties of the following css mouse pointercss style sheet:
Default |
default |
Text/Edit |
text |
Auto |
##auto |
pointer, hand (hand is exclusive to IE) | |
move | |
not-allowed | |
no-drop | |
wait | |
help | |
crosshair | |
n-resize | |
s_resize has the same effect as n-resize |
|
w-resize | |
e-resize has the same effect as w-resize | |
nw-resize | |
sw-resize | |
ne-resize Same effect as sw-resize | |
se-resize and nw- The effect of resize is the same | |
##url('cursor address') |
The above is the detailed content of How to change mouse shape in html. For more information, please follow other related articles on the PHP Chinese website!