更新时间:2021年09月07日14时59分 来源:传智教育 浏览次数:

CSS中可以用cursor属性来定义鼠标指针在一个元素边界范围内时所用的光标形状,语法为:
cursor: 属性;
| 属性值 | 语法 | 描述 | 鼠标样式 | 
|---|---|---|---|
| default | 
	 cursor: default;  | 
	默认 | ![]()  | 
	
| pointer | 
	 cursor: pointer;  | 
	小手 | ![]()  | 
	
| move | 
	 cursor: move;  | 
	移动 | ![]()  | 
	
| text | 
	 cursor: text;  | 
	文本 | ![]()  | 
	
| not-allowed | 
	 cursor: not-allowed;  | 
	禁止 | ![]()  | 
	
猜你喜欢: