<!DOCTYPE html>
<html>
<head>
<title>Document</title>
<style>
a{
width: 200px;
height: 80px;
background-color: #3064bb;
display: block;
text-align: center;
line-height: 80px;
text-decoration: none;
color: white;
font-size: 18px;
}
a:hover{
color: aqua;
background-color: rgb(100, 147, 216);
}
</style>
</head>
<body>
<a href="#">HTML</a>
<a href="#">css</a>
<a href="#">js</a>
<a href="#">vue</a>
<a href="#">react</a>
</body>
</html>
HTML+CSS练习鼠标悬停效果
于 2024-05-04 15:31:42 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)