Detailed explanation of the example code of cursor attribute in CSS

零下一度
Release: 2017-06-09 11:17:30
Original
2425 people have browsed it

cursor attribute of CSS

Today I learned the cursor attribute of CSS. Let’s summarize it in the first blog.

The cursor attribute is used to control the display style of the cursor. The possible values ​​are as follows:

cursor:url()*|{auto|default|pointer|crosshair|text|vertical-text|help|not-allowed|no-drop|move|e-reszie|s-resize|w-resize|w-resize|n-resize|all-scroll|ne-resize|se-resize|nw-resize|sw-resize|col-resize|row-resize|}
Copy after login

* means writing at least one of this value, and you can select a value in {} after the url.

 1 
 2 
 3 
 4     
 5     CSS之cursor属性
 6     
34 
35 
36      百度
37      

指示和选择光标

38

auto:浏览器默认

39

default:操作系统默认光标

40

hand:手型

41

text:大写的I,水平文本选择

42

vertical-text:大写的I,垂直文本选择

43

help:箭头加问号,获取帮助

44

pointer:手形,表示链接

45

not-allowed:红色圆圈和斜杠,禁止操作

46

no-drop:红色圆圈和斜杠,无法释放

47

crosshair:十字瞄准,表示精确选择

48
49

表程序状态

50

wait:选转环,表示等待直到不忙,不能交互

51

progress:箭头加旋转环,处理中,可以交互

52 53
54

move用于移动对象

55

move:移动对象,两端带箭头的十字

56

all-scroll:移动

57

在四个角上改变窗口大小

58

ne-resize:向东(右)或/和北(上)

59

sw-resize:向西(左)或/和南(下)

60

nw-resize:向西(左)或/和北(上)

61

se-resize:向东(右)或/和南(下)

62
63

在四条边上改变窗口大小

64

东西用于改变水平宽度

65

e-resize:向东(右)

66

w-resize:向西(左)

67

南北用于改变垂直高度

68

s-resize:向南(下)

69

n-resize:向北(上)

70

col-resize:改变列宽

71

row-resize:改变行高

72 73
Copy after login

Detailed explanation of the example code of cursor attribute in CSS

Detailed explanation of the example code of cursor attribute in CSS

Detailed explanation of the example code of cursor attribute in CSS

Detailed explanation of the example code of cursor attribute in CSS

Also There are several attribute values ​​​​that are not clear: hand url col-resize row-resize After clarification, I will modify the blog.

It’s my first time writing a blog, so I’m unfamiliar with everything. What I learned is not solid enough, so corrections are welcome.

The above is the detailed content of Detailed explanation of the example code of cursor attribute 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!