How can I make the horizontal scrollbar for a DIV always appear fixed on the bottom of the page?

后端 未结 3 1036
太阳男子
太阳男子 2020-12-17 23:17

I have a website which contains a large (and wide) table. The table is placed inside jquery UI tabs.

It looks something like this: http://jsfiddle.net/Tq3Rg/

3条回答
  •  鱼传尺愫
    2020-12-17 23:22

    Set a fixed height (and don't use inline-styles):

    Your altered Demo

    the code:

    .top{
       height:10%;
    }
    .center{
       overflow:scroll;
       height:80%;
    }
    .bottom{
       height:10%;
    }
    

    If you really want to have the scrollbars at the very bottom of your page, you could check this answer on how to achieve this without needing custom scrollbars and such stuff.

提交回复
热议问题