Common mouse styles are arrows or small hand shapes. In addition, we can according to our own requirements, Use the cursor property in CSS to change the appearance of the mouse cursor.
Recommended study: "CSS Tutorial"
Below we will introduce to you the differences of the mouse cursor style.
The code is as follows:
<!DOCTYPE> <html> <meta charset="utf-8"> <head> <title></title> </head> <body> <a href=# style=cursor:crosshair;>十字准线</a><hr> <a href=# style=cursor:text;> text </a><hr> <a href=# style=cursor:wait;>等待的形状</a><hr> <a href=# style=cursor:move;>移动的形状</a><hr> <a href=# style=cursor:help;>帮助的形状</a><hr> <a href=# style=cursor:default;>默认的形状</a><hr> <a href=# style=cursor:hand;>小手状</a> </body> </html>
You can copy the above code locally for testing. When the mouse hovers over each hyperlink, the different changes will be displayed. Cursor style.
Crosshair style:
##Text Style when editing:
Waiting style:
Mobile style:
Help style:
Default arrow style:
Small hand style:
cursor Property specifies the type (shape) of the cursor to be displayed. This property defines the cursor shape used when the mouse pointer is placed within the bounds of an element (although CSS2.1 does not define which bounds determine this range). This article is a brief introduction to CSS mouse cursor styles. I hope it will be helpful to friends in need!The above is the detailed content of How to change mouse style in css. For more information, please follow other related articles on the PHP Chinese website!