Word-wrap in an HTML table

后端 未结 25 3375
温柔的废话
温柔的废话 2020-11-22 02:45

I\'ve been using word-wrap: break-word to wrap text in divs and spans. However, it doesn\'t seem to work in table cells. I have a tabl

25条回答
  •  清歌不尽
    2020-11-22 03:19

    As mentioned, putting the text within div almost works. You just have to specify the width of the div, which is fortunate for layouts which are static.

    This works on FF 3.6, IE 8, Chrome.

    
      

提交回复
热议问题