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

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

<!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>

 


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

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

上一篇:设计模式-策略模式


下一篇:9月3日考研单词分享