Bùi Tấn Lực
- 26
- 12/10/2025
Thuộc tính cursor trong CSS dùng để tạo ra các hiệu ứng khi rê chuột vào một phần tử HTML, mỗi hiệu ứng thường gắn liền với một chức năng, chi tiết như nào hãy cùng chúng tôi phân tích:
Thuộc tính cursor trong CSS
Chức năng của Thuộc tính cursor trong CSS
Thuộc tính cursor trong CSS dùng để tạo ra các hiệu ứng khi rê chuột vào một phần tử HTML, mỗi hiệu ứng thường gắn liền với một chức năng nào đó.
Code Thuộc tính cursor trong CSS
Ví dụ: cursor:pointer
<!DOCTYPE html>
<html>
<head>
<title>Code Thuộc tính cursor trong CSS</title>
<style>
span{display: block;margin-bottom:10px}
span:hover{color:red}
</style>
</head>
<body>
<h1>Code Thuộc tính cursor trong CSS</h1>
<span style="cursor:alias">alias</span>
<span style="cursor:all-scroll">all-scroll</span>
<span style="cursor:auto">auto</span>
<span style="cursor:cell">cell</span>
<span style="cursor:col-resize">col-resize</span>
<span style="cursor:context-menu">context-menu</span>
<span style="cursor:copy">copy</span>
<span style="cursor:crosshair">crosshair</span>
<span style="cursor:default">default</span>
<span style="cursor:e-resize">e-resize</span>
<span style="cursor:ew-resize">ew-resize</span>
<span style="cursor:grab">grab</span>
<span style="cursor:grabbing">grabbing</span>
<span style="cursor:help">help</span>
<span style="cursor:move">move</span>
<span style="cursor:n-resize">n-resize</span>
<span style="cursor:ne-resize">ne-resize</span>
<span style="cursor:nesw-resize">nesw-resize</span>
<span style="cursor:ns-resize">ns-resize</span>
<span style="cursor:nw-resize">nw-resize</span>
<span style="cursor:nwse-resize">nwse-resize</span>
<span style="cursor:no-drop">no-drop</span>
<span style="cursor:none">none</span>
<span style="cursor:not-allowed">not-allowed</span>
<span style="cursor:pointer">pointer</span>
<span style="cursor:progress">progress</span>
<span style="cursor:row-resize">row-resize</span>
<span style="cursor:s-resize">s-resize</span>
<span style="cursor:se-resize">se-resize</span>
<span style="cursor:sw-resize">sw-resize</span>
<span style="cursor:text">text</span>
<span style="cursor:url">url</span>
<span style="cursor:w-resize">w-resize</span>
<span style="cursor:wait">wait</span>
<span style="cursor:zoom-in">zoom-in</span>
<span style="cursor:zoom-out">zoom-out</span>
</body>
</html>
Lời kết
Cảm ơn các bạn đã tham khảo bài viết Thuộc tính cursor trong CSS.
- 0 Bình luận

Bùi Tấn Lực
CEO Bùi Tấn Lực người sáng lập ra Web Mới, là một lập trình viên website, người viết content, chuyên tư vấn các vấn đề về website và SEO website
Chia sẻ nội dung đánh giá của bạn về Thuộc tính cursor trong CSS
Email, Điện thoại của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *
Email, Điện thoại của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *
Bình luận, Hỏi đáp
Đăng ký tư vấn miễn phí
Tìm hiểu 1 năm không bằng lắng nghe 1 câu tư vấn