Wrap a long single word using CSS

前端 未结 7 1947
梦谈多话
梦谈多话 2021-01-04 17:52

I tried to wrap a single word which contains around 500+ chars in a div.

7条回答
  •  梦谈多话
    2021-01-04 18:43

    You've also got HTML5's tag: http://www.quackit.com/html_5/tags/html_wbr_tag.cfm which lets you specify suitable break points

    dwhjifuidfinrnvfrvgjsrfjoejwofjjfpijqfpqejospjfcjcdefjipwejpfjespfjweokpwoefweeeepWSPgjwrqeo
    

    It might not be what you want, but it's worth playing around with

提交回复
热议问题