首页 > 编程知识 正文

powerbi怎么做导航按钮菜单,高德地图怎么选楼层

时间:2023-05-06 16:21:21 阅读:60107 作者:3679

! doctypehtmlhtmllang=' en ' headmetacharset=' utf-8 ' meta http-equiv=' x-ua-compatible ' content=' ie=edge ' padding: 0; } body{ height: 5000px; } .floor{ width: 400px; height: 400px; 背景色: pink; margin: 0 auto 20px; } ul{ list-style: none; (Li ) width:80px; 高: 40px; 文本对齐3360中心; line-height: 40px; 背景色: red; font-size: 18px; cursor: pointer; } #floorNav{ position: fixed; right: 20px; top:50%; width: 80px; height: 160px; margin-top: -80px; } .cur{ color: #fff; }/style/headbodysection id=' floors ' divclass=' floor ' data-n='技术'技术/div div class='floor' data-n=div/section navid=' floor nav ' ulid=' list ' lidata-n='科技' class='culass=li li data-n='娱乐'娱乐/li li data-n=i floors.length; I ) { offsettop arr.push (floors [ I ].offsettop ); }offsettopARR.push(infinity )/console.log ) offsettopARR ) let list=document.getelementbyid ) ' list ' ) letlis list.onclick=function(e ) if ) e.e tattribute let floor=document.query selector (.floor [数据- n=' n ' ] ) documentelement.scroll top=floor.offs sor window.onscroll=function ({ const scroll top=document.documentelement.scroll top; for(varI=0; ioffsetTopArr.length; I ) if (scroll top=offsettop arr [ I ] scrolltopoffsettoparr [ i1 ] ) break ) if ) curfloor!=i ) curfloor=Ifor(letj=0; jlis.length; j () if ) j==I ) ) lis[j].classname='cur'}else ) lis [ j ].class name=' ' }/script/body/html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。