How to prevent line-break in a column of a table cell (not a single cell)?

后端 未结 9 1015
粉色の甜心
粉色の甜心 2020-12-07 23:43

How can I prevent automatic line breaks in a column of table (not a single cell)?

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 00:20

    For completion sake:

    #table_id td:nth-child(2)  {white-space: nowrap;}
    

    Is used for applying a style to the 2 column of the table_id table.

    This is supported by all major Browsers, IE started supporting this from IE9 onwards.

提交回复
热议问题