EN

Search
Close this search box.

موستانگ، وحشیِ دوست داشتنی

0
0

how to change the color of an element when the mouse enters?

  • شما باید برای ارسال دیدگاه شوید
0
0

Use the hover keyword to change the style of an element when the mouse enters it.

p:hover, h1:hover, a:hover {
  background-color: blue;
  font-size: 150%
}

* To change the color of a link in different situations use this code:

<html>
<head>
<style>
/* unvisited link */
a:link {
  color: blue;
}

/* visited link */
a:visited {
  color: green;
}

/* mouse over link */
a:hover {
  color: red;
 }

/* selected link */
a:active {
  color: yellow;
} 
</style>
</head>
<body>

<p>visit the website: <a href="https://mustang.ir/questions/">https://mustang.ir/questions</a></p>

</body>
</html>
  • شما باید برای ارسال دیدگاه شوید
نمایش 1 نتیجه
پاسخ شما
اگر قبلاً حساب کاربری دارید با پر کردن فیلد های زیر یا به عنوان مهمان ارسال کنید.
نام*
ایمیل*
وب سایت