效果如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
li{
list-style: none;
display: inline-block;
background-color: cornflowerblue;
width: 120px;
height: 70px;
text-align: center;
line-height: 70px;
}
li:hover{
background-color: deepskyblue;
color: red;
cursor: pointer;
}
</style>
</head>
<body>
<ul>
<li>学习交流</li>
<li>测试题</li>
<li>下载</li>
<li>考勤</li>
<li>SEO</li>
</ul>
</body>