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

前端 未结 7 2254
清酒与你
清酒与你 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:47

    As long as you fix the width of the table itself and set the table-layout property, this is pretty simple :

    
    
    
        
    
    
    
        
    word two words onereallylongword

    I've tested this in IE6 and 7 and it seems to work fine.

提交回复
热议问题