How to change mouse style in css

藏色散人
Release: 2018-12-06 09:13:39
Original
3925 people have browsed it



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.

How to change mouse style in css

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>
Copy after login

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:


How to change mouse style in css

##Text Style when editing:

How to change mouse style in css

Waiting style:

How to change mouse style in css

Mobile style:

How to change mouse style in css

Help style:

How to change mouse style in css

Default arrow style:

How to change mouse style in css

Small hand style:

How to change mouse style in css

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!