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 @ 2022-04-17 13:06  天使阿丽塔  阅读(431)  评论(0编辑  收藏  举报