jQuery tabs: panel covers tabs at 100% height

后端 未结 10 966
生来不讨喜
生来不讨喜 2021-01-11 13:15

I\'m trying to use the tabs widgets of jQuery-UI having panels content to extend to the whole available space.

Here\'s a simplified version of what I\'ve got so far:

10条回答
  •  [愿得一人]
    2021-01-11 14:00

    I added a top position value to the #tab-1 id to push it below the tab itself.

    See: http://jsfiddle.net/MhEEH/40/

    Here is the pertinent CSS:

    #tab-1 {
        background: green;
        position: absolute;
        top: 50px;
        bottom: 0;
        left: 0;
        right: 0;
    }
    

    Hope it helps!

提交回复
热议问题