Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

CSS Cursor Property - ตัวอย่างการใช้งาน

คุณสมบัติ cursor ใน CSS ใช้ระบุประเภทของเคอร์เซอร์ที่จะแสดงเมื่อผู้ใช้เลื่อนเมาส์ไปบน Element

ตัวอย่าง

<html>
<head></head>
<body>
    <p>Move the mouse over the words and see the changes in cursor:</p>
    <div style="cursor:auto">Auto</div>
    <div style="cursor:crosshair">Crosshair</div>
    <div style="cursor:default">Default</div>
</body>
</html>

ลองเลื่อนเมาส์ไปบนคำแต่ละคำเพื่อดูการเปลี่ยนแปลงของเคอร์เซอร์