网站首页 网站地图
网站首页 > 网络游戏 > cursor: pointer

cursor: pointer

时间:2026-04-01 14:31:49

The cursor: pointer CSS property sets the cursor to a pointer shape, typically used when the user is expected to click, such as on a hyperlink or a button.

Example:

/* Example usage */
.my-button {
  cursor: pointer;
}

Common Use Cases:

  • On links (a elements)
  • On buttons (button elements)
  • On images or icons that are clickable

Notes:

  • It can also be combined with other cursor styles, like cursor: crosshair for a crosshair cursor.
  • The cursor can be set using a URL, like url('pointer.png'), auto.

Let me know if you'd like to see how to apply this in a specific context!