How to hide Table Row Overflow?

前端 未结 7 887
故里飘歌
故里飘歌 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

    If javascript is accepted as an answer, I made a jQuery plugin to address this issue (for more information about the issue see CSS: Truncate table cells, but fit as much as possible).

    To use the plugin just type

    $('selector').tableoverflow();
    

    Plugin: https://github.com/marcogrcr/jquery-tableoverflow

    Full example: http://jsfiddle.net/Cw7TD/3/embedded/result/

提交回复
热议问题