cursor:pointer的作用
<div style={{ cursor: 'pointer', position: 'relative', float: 'right', marginTop: -14 }}></div>
- 1
cursor : 软件系统开发定制网页浏览时用户鼠标指针的样式或图形形状。
属性值:
default:默认光标(通常是一个箭头)
auto:默认,浏览器设置的光标
crosshair:光标为十字线
pointer:光标为一只手
move:光标为某对象可移动
text:光标指示文本
wait:光标指示程序正在忙(通常是一只表或者一个沙漏)
以上只是个人理解,有不同理解请各位大佬指教