Overflow:scroll in a table cell - works in Chrome, doesn't work anywhere else

后端 未结 3 1465
北恋
北恋 2021-01-23 19:28

I\'m trying to get a scrollbar show up in a table cell whose content may grow bigger than the original table cell size, and I don\'t want the whole table to str

3条回答
  •  后悔当初
    2021-01-23 20:19

    Couldn't you just make that into three separate tables with the middle table surrounded by a div so you can apply a scroll to it?

    div {
        overflow-y:scroll;
        //set height to however large you would like your scrollable area to be
    }
    
    Header
    ... VERY BIG CONTENT HERE ...

提交回复
热议问题