:hover
W3C CSS Snapshot 2026
Mouse pointer တင်ထားချိန် element ကို ရွေးပါတယ်။
Code စမ်းလို့ရတဲ့ သင်ခန်းစာ ဖွင့်ရန်
ဒီစာမျက်နှာမှာ
ရေးပုံနဲ့ သုံးလို့ရတဲ့ တန်ဖိုးများ
| တန်ဖိုး သို့မဟုတ် ရေးပုံ | အလုပ်လုပ်ပုံ |
|---|---|
button:hover | Pointer တင်ထားတဲ့ ခလုတ်ကို ရွေးပါတယ်။ Touch device တွေမှာ တုံ့ပြန်ပုံ ကွာနိုင်ပါတယ်။ |
နမူနာကို စမ်းကြည့်ပါ
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>:hover</title>
<style>
button:hover { background: teal; color: white; }
</style>
</head>
<body>
<button type="button">Open schedule</button>
<button type="button" disabled>Unavailable</button>
</body>
</html>
စမ်းကြည့်ရင် ဘာဖြစ်မလဲ ခလုတ်ပေါ် pointer တင်ပြီး နောက်ခံရောင် ပြောင်းတာ ကြည့်ပါ။