<!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>Document</title>
<style>
* {
margin: 0;
padding: 0;
list-style: none;
}
body {
background-color: #dedede;
}
#nav {
position: fixed;
top: 30%;
left: 10%;
}
#nav li {
width: 120px;
text-align: center;
line-height: 30px;
background-color: #999;
border: 1px solid #fff;
color: #fff;
cursor: pointer;
}
#content {
width: 1200px;
margin: 0 auto;
原生js实现楼层滚动
最新推荐文章于 2022-05-07 11:23:04 发布