<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
}
.nav{
display: flex;
width: 100%;
height: 60px;
text-align: center;
line-height: 60px;
font-size: 20px;
color: #ffffff;
background-color: #cccccc;
position: fixed;
bottom: 0;
left: 0;
}
.nav li{
flex: 1;
}
</style>
</head>
<body>
<ul class="nav">
<li>首页</li>
<li>物流</li>
<li>购物车</li>
</ul>
</body>
</html>
自适应底部导航栏
最新推荐文章于 2024-05-19 09:58:49 发布