带货直播源码,固定位置的底部导航栏实现

带货直播源码,固定位置的底部导航栏实现的相关代码

<!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>foooter</title>
<script src="https://unpkg.com/vue@next"></script>
<style>
body {
padding: 0;
margin: 0;
}
/*1*/
/* .container {
background-color: tan;
}
.page {
background-color: teal;
padding-bottom: 70px;
}
.page-item {
padding: 150px 0;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 70px;
background-color: tomato;
} */
/*2*/
.container {
background-color: tan;
overflow: hidden;
height: 100vh;
width: 100%;
}
.page {
width: 100%;
height: 100%;
box-sizing: border-box;
background-color: teal;
overflow-y: scroll;
padding-bottom: 70px;
}
.page-item {
padding: 150px 0;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 70px;
background-color: tomato;
}
</style>
</head>
<body>
<div id="root">
<div class="container">
<div class="page">
111
<div class="page-item"></div>
<div class="page-item"></div>
<div class="page-item"></div>
<div class="page-item"></div>
<div class="page-item"></div>
<div class="page-item"></div>
<div class="page-item"></div>
<div class="page-item"></div>
<div class="page-item"></div>
222
</div>
<div class="footer">看我动不动</div>
</div>
</div>
</body>
</html>

 


以上就是 带货直播源码,固定位置的底部导航栏实现的相关代码,更多内容欢迎关注之后的文章

posted @ 2021-09-03 14:22  云豹科技-苏凌霄  阅读(81)  评论(0编辑  收藏  举报