var onav = document.getElementById("nav");
$(window).scroll(function(){
if($(document).scrollTop()>=60){
$("#nav").css({"position":"fixed","z-index":999,"left":"0","right":"0","top":"0","margin":"atuo"});
}else{
$("#nav").css("position":"static");
}
})
jquery头部导航在滚懂得时候永远在顶部
最新推荐文章于 2024-03-05 14:30:35 发布