<script>
            $(function(){
                $(window).resize(function(){
                    var _height = $(window).height();
                    var _conheight = $('#footer').height();
                    
                    var temp = (_height - _conheight)/2;
                    if(temp>0) {
                        $('#footer').css('margin-top', temp);
                    }else {
                        $('#footer').css('margin-top', 0);
                    }
                });
            });

 

相关文章:

  • 2022-01-20
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-07-25
  • 2022-12-23
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2021-11-06
相关资源
相似解决方案