How to stretch an HTML table to 100% of the browser window height?

前端 未结 3 1425
攒了一身酷
攒了一身酷 2021-01-04 11:04

I\'m using a table to design the layout of my web page. I want the table to fill the page even if it doesn\'t contain much content. Here\'s the CSS I\'m using:



        
3条回答
  •  走了就别回头了
    2021-01-04 11:23

    You can handle this in Javascript/JQuery.

    window_height = $(window).height();
    $('#container').css('min-height', window_height);
    

提交回复
热议问题