hasayaki

if($(document.body).height() < $(window).height()){
$("#footer").css({position:\'fixed\',bottom:0,width:\'100%\'});
}
$(window).resize(function() {
if($(document.body).height() < $(window).height()){
$("#footer").css({position:\'fixed\',bottom:0,width:\'100%\'});
}else{
$("#footer").css({position:\'relative\'});
}
});

分类:

技术点:

相关文章:

  • 2021-04-13
  • 2021-12-02
  • 2021-12-27
  • 2021-11-29
  • 2021-12-22
  • 2021-09-07
  • 2021-12-23
猜你喜欢
  • 2021-09-07
  • 2021-11-21
  • 2021-11-12
  • 2021-09-07
  • 2021-12-22
  • 2021-09-07
  • 2021-09-07
相关资源
相似解决方案