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

กำหนดรูปแบบลิงก์เมื่อวางเมาส์ไว้เหนือด้วย CSS


ในการจัดรูปแบบลิงก์เมื่อวางเมาส์ไว้เหนือด้วย CSS ให้ใช้ CSS:ตัวเลือกโฮเวอร์ คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้งาน:โฮเวอร์ ตัวเลือก

ตัวอย่าง

<!DOCTYPE html>
<html>
   <head>
      <style>
         a:hover {
            background-color: orange;
         }
      </style>
   </head>
   <body>
      <a href = "https://www.google.com">Google</a>
      <p>Keep the mouse cursor on the above link and see the effect.</p>
   </body>
</html>