böyle olmasını mı istiyorsunuz. change sözcüğüne link verdim:
Alıntı
<!DOCTYPE html>
<html>
<head>
<style>
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
a:link
{
color:red;
}
.button1 {
background-color: #27ae60;
color: white;
border: 2px solid #27ae60;
}
.button1:hover {
background-color: #32ce74;
color: white;
}
.button2 {
background-color: #2980b9;
color: white;
border: 2px solid #2980b9;
}
.button2:hover {
background-color: #3599db;
color: white;
}
.button3 {
background-color: #c0392b;
color: white;
border: 2px solid #c0392b;
}
.button3:hover {
background-color: #e74c3c;
color: white;
}
.button4 {
background-color: #f39c12;
color: white;
border: 2px solid #f39c12;
}
.button4:hover {background-color: #f1c40f;}
.button5 {
background-color: #2c3e50;
color: white;
border: 2px solid #2c3e50;
}
.button5:hover {
background-color: #34495e;
color: white;
}
</style>
</head>
<body>
<h2>Hoverable Buttons</h2>
<p>Use the :hover selector to <a href="#">change</a> the style of the button when you move the mouse over it.</p>
<p><strong>Tip:</strong> Use the transition-duration property to determine the speed of the "hover" effect:</p>
<button class="button button1">green</button>
<button class="button button2">Blue</button>
<button class="button button3">Red</button>
<button class="button button4">Gray</button>
<button class="button button5">Black</button>
</body>
</html>