<!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>小米侧边栏</title>
<style>
a {
display: block;
width: 230px;
height: 40px;
line-height: 40px;
background-color: #55585a;
font-style: 14px;
color: #fff;
text-decoration: none;
text-indent: 2em;
}
/* 鼠标经过链接变换背景颜色 */
a:hover {
background-color: #ff6700;
}
/* 让文字的行高等于盒子的行高 就可以实现单行文字垂直居中 */
</style>
</head>
<body>
<a href="#">手机 电话卡</a>
<a href="#">电视 盒子</a&g
小米侧边栏-VScode实现
最新推荐文章于 2022-09-01 15:36:43 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)