Home >Web Front-end >CSS Tutorial >How to style css3 links without hands

How to style css3 links without hands

WBOY
WBOYOriginal
2022-03-28 18:57:311929browse

In CSS, you can use the cursor attribute to set the style without little hands on the link. This attribute is used to define the cursor shape used when the mouse pointer is placed within the boundary of an element. When the attribute value is set to default , the mouse style is a normal arrow style, and the syntax is "cursor:default;".

How to style css3 links without hands

The operating environment of this tutorial: Windows 10 system, CSS3&&HTML5 version, Dell G3 computer.

How to style css3 links without hands

The cursor attribute defines the cursor shape used when the mouse pointer is placed within the bounds of an element

  • default Default cursor (usually an arrow)

  • auto Default. The cursor set by the browser.

  • crosshair The cursor appears as a crosshair.

  • pointer The cursor appears as a pointer (a hand) indicating a link

  • ##move This cursor indicates that an object can be moved.

  • e-resize This cursor indicates that the edge of the rectangular box can be moved to the right (east).

  • ne-resize This cursor indicates that the edge of the rectangular box can be moved up and to the right (North/East).

  • nw-resize This cursor indicates that the edge of the rectangular box can be moved up and to the left (North/West).

  • n-resize This cursor indicates that the edge of the rectangular box can be moved up (north).

The example is as follows:

<html>
<head>
<meta charset="utf-8"> 
<title>123</title> 
</head>
<body>
<p>请把鼠标移动到单词上,可以看到鼠标指针发生变化:</p>
<a href="" style="cursor:default">这是一个已经设置完样式的链接</a><br>
<a href="">这是一个普通链接</a>
</body>
</html>

Output result:

How to style css3 links without hands

(Learning video sharing:

css video Tutorial)

The above is the detailed content of How to style css3 links without hands. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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