html (+css): denoting a preferred place for a line break

前端 未结 9 1669
南旧
南旧 2020-11-28 03:08

Let\'s say I have this text that I want to display in an HTML table cell:

Honey Nut Cheerios, Wheat Chex, Grape-Nuts, Rice Krispies, Some random cereal with          


        
9条回答
  •  天命终不由人
    2020-11-28 03:57

    There’s an HTML element for that™: the (now standardized) element.

    I’d advise you to use that. It may not work everywhere, but it’s the best you can do without going through hoops.

提交回复
热议问题