<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
a {
width: 80px;
height: 50px;
color: aliceblue;
background-color: red;
text-align: center;
line-height: 50px;
display: inline-block;
text-decoration: none;
}
a:hover {
background-color: yellow;
}
</style>
</head>
<body>
<a href="#">导航1</a>
<a href="#">导航2</a>
<a href="#">导航3</a>
<a href="#">导航4</a>
<a href="#">导航5</a>
</body>
</html>
CSS第二天案例1
最新推荐文章于 2024-11-01 17:12:30 发布