<script>
    $(document).ready(function(){
        var height=$(window).height()-50;
        var o = document.getElementById("view");
        var h = o.offsetHeight; //高度
        if(h > height){
            o.style.overflow='auto';
            o.style.height=height+'px';
        }
    });
</script>

 

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2021-04-04
  • 2021-12-27
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案