定义和用法
cursor 属性规定要显示的光标的类型(形状)。
该属性定义了鼠标指针放在一个元素边界范围内时所用的光标形状。
可能的值:Auto、crosshair、default、pointer、move、e-resize、ne-resize、nw-resize、n-resize、se-resize、sw-resize、s-resize、w-resize、text、wait、help
具体查看文档CSS cursor 属性
测试代码
<html><body><p>请把鼠标移动到单词上,可以看到鼠标指针发生变化:</p><spanstyle="cursor:auto">Auto</span><br/><spanstyle="cursor:crosshair">Crosshair</span><br/><spanstyle="cursor:default">Default</span><br/><spanstyle="cursor:pointer">Pointer</span><br/><spanstyle="cursor:move">Move</span><br/><spanstyle="cursor:e-resize">e-resize</span><br/><spanstyle="cursor:ne-resize">ne-resize</span><br/><spanstyle="cursor:nw-resize">nw-resize</span><br/><spanstyle="cursor:n-resize">n-resize</span><br/><spanstyle="cursor:se-resize">se-resize</span><br/><spanstyle="cursor:sw-resize">sw-resize</span><br/><spanstyle="cursor:s-resize">s-resize</span><br/><spanstyle="cursor:w-resize">w-resize</span><br/><spanstyle="cursor:text">text</span><br/><spanstyle="cursor:wait">wait</span><br/><spanstyle="cursor:help">help</span></body></html>
效果图
https://ucc.alicdn.com/images/user-upload-01/b7be3181171e46419ed6041ad6378d0a.gif