Wrap a long single word using CSS

前端 未结 7 1859
梦谈多话
梦谈多话 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 <wbr> tag: http://www.quackit.com/html_5/tags/html_wbr_tag.cfm which lets you specify suitable break points

    dwhjifuidfinrnvfrvgjsrfjoejwofjjfpijqfpqej<wbr>ospjfcjcdefjipwejpfjespfjweokpwoefweeeepWSPgjwrqeo
    

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

    0 讨论(0)
提交回复
热议问题