var resultTop = $(".about-we-nav").offset().top;
$(window).scroll(function () {

if ($(document).scrollTop() >= resultTop-24) {
$(".about-we-nav").css({"top":"24px","position":"fixed"})
} else {
$(".about-we-nav").css({"position":"static"});
// alert(1)
}
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-06-05
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案