マウスカーソルの指定
CSS で cursor
属性を指定すると、マウスカーソルを変更することができる。
a { cursor: auto; }
要素名とカーソルの形状の関係はブラウザや OS で異なる。以下のリストの項目にマウスを重ねると、カーソルの表示が要素名に対応したものに変更されるので、挙動を確認することができる。
- auto
- crosshair
- default
- pointer
- hand
- move
- text
- wait
- help
- n-resize
- s-resize
- e-resize
- w-resize
- ne-resize
- nw-resize
- se-resize
- sw-resize
- col-resize
- row-resize
- all-scroll
- no-drop
- not-allowed
- progress
- vertical-text