Table cell widths - fixing width, wrapping/truncating long words

前端 未结 7 2097
清酒与你
清酒与你 2021-02-01 02:07

I have a table containing cells with text of various lengths. It is essential that all of the table cells are of the same width. If this means truncating long words or forcing a

相关标签:
7条回答
  • 2021-02-01 02:53

    If you want to the long text wrapped properly in new lines then in your table id call use a css property table-layout:fixed; otherwise simply css can't break the long text in new lines.

    0 讨论(0)
提交回复
热议问题