Make TBODY scrollable in Webkit browsers

后端 未结 14 2013
闹比i
闹比i 2020-11-29 20:33

I\'m aware of this question, but none of the answers work in Safari, Chrome, etc.

The accepted strategy (as demonstrated here) is to set the tbody height and overflo

14条回答
  •  被撕碎了的回忆
    2020-11-29 20:38

    If anyone needs it to work in IE quirks mode, here is how I changed and simplified I.G. Pascual's code to work:

    .fixed_table{
           overflow: scroll;
           overflow-x: hidden;
           max-height: 300px;
           height: 300px;
           min-height: 50px;
           padding-right:0;
    }
    #datatable td 
    {
           padding:3px;
           text-align: center;
           width: 9%;
           vertical-align: middle;
           background-color: #343435; 
           color: #E0E0E3;
           overflow:hidden;
    } 
    
    Time (GMT) Price

提交回复
热议问题