CSS3淡绿色的按钮样式
作者:庄泽峰 / 2023-12-6 10:48
<!DOCTYPE html>
<html>
<head>
<title>Button Style</title>
<style>
.button {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
text-align: center;
text-decoration: none;
background-color: #4CAF50;
color: #ffffff;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<a href="#" class="button">Click Me</a>
</body>
</html>