How can I allow text to wrap inside a word if necessary?

后端 未结 8 965
清歌不尽
清歌不尽 2020-12-09 08:45

I am looking for the best solution to allow text to wrap in the middle of a word if necessary. By best, I mean most browser-compatible, and will favor word breaks before it

8条回答
  •  时光取名叫无心
    2020-12-09 09:24

    In the past, I have used something like this, (which did not work on Safari at the time, IIRC, but that was several years ago):

    AVeryLongWord AndAnotherWord

    (I would generate this dynamically so that the person doing layout would not have to look at such an atrocity.)

提交回复
热议问题