How to hide Table Row Overflow?

前端 未结 7 873
故里飘歌
故里飘歌 2020-11-28 09:16

I have some html tables where the textual data is too large to fit. So, it expands the cell vertically to accommodate for this. So now rows that have the overflow are twic

7条回答
  •  遥遥无期
    2020-11-28 09:33

    wrap the table in a div with class="container"

    div.container {
        width: 100%;
        overflow-x: auto;
    }
    

    then

    #table_id tr td {
       white-space:nowrap;
    }
    

    result

提交回复
热议问题