CSS 鼠标移上去变小手

  1. ⽤css 添加⼿状样式

cursor:pointer;

  1. 用JS使鼠标变小手onmouseover(鼠标越过的时候)

οnmοuseοver="this.style.cursor='hand'"

  1. Cursor 光标样式

在悬停在元素上时,用于控制光标样式的实用程序。

Class Properties Preview
cursor-auto cursor: auto; img
cursor-default cursor: default; img
cursor-pointer cursor: pointer; img
cursor-wait cursor: wait; img
cursor-text cursor: text; img
cursor-move cursor: move; img
cursor-help cursor: help; img
cursor-not-allowed cursor: not-allowed; img
cursor-none cursor: none;
cursor-context-menu cursor: context-menu; img
cursor-progress cursor: progress; img
cursor-cell cursor: cell; img
cursor-crosshair cursor: crosshair; img
cursor-vertical-text cursor: vertical-text; img
cursor-alias cursor: alias; img
cursor-copy cursor: copy; img
cursor-no-drop cursor: no-drop; img
cursor-grab cursor: grab; img
cursor-grabbing cursor: grabbing; img
cursor-all-scroll cursor: all-scroll; img
cursor-col-resize cursor: col-resize; img
cursor-row-resize cursor: row-resize; img
cursor-n-resize cursor: n-resize; img
cursor-e-resize cursor: e-resize; img
cursor-s-resize cursor: s-resize; img
cursor-w-resize cursor: w-resize; img
cursor-ne-resize cursor: ne-resize; img
cursor-nw-resize cursor: nw-resize; img
cursor-se-resize cursor: se-resize; img
cursor-sw-resize cursor: sw-resize; img
cursor-ew-resize cursor: ew-resize; img
cursor-ns-resize cursor: ns-resize; img
cursor-nesw-resize cursor: nesw-resize; img
cursor-nwse-resize cursor: nwse-resize; img
cursor-zoom-in cursor: zoom-in; img
cursor-zoom-out cursor: zoom-out; img
posted @   天使阿丽塔  阅读(465)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
点击右上角即可分享
微信分享提示