实现的功能点
- 页面到today盒子 电梯导航就会出现
- 点击 电梯导航LI 计算出页面要去到的位置
- 滚动到 电梯导航 相应的内容区域 相对应的导航栏目会添加 .current
ul,li,div,p,body{
margin:0;padding:0;}.box{
width:800px;margin:auto;}.bigbox{
width:100%;height:1000px;background-color:#eee;}.today{
width:100%;height:100px;background-color:#999;}.box1,.box2,.box3,.box4{
width:100%;height:800px;background-color:#ccc;margin:10px 0;}.fixedtool{
position:fixed;left:10px;top:50%;width:80px;}.fixedtool ul li{
line-height:25px;list-style:none;text-align:center;}.fixedtool ul li:hover,.current{
background-color:red;color:#fff;