Wrapping long text without white space inside of a div

后端 未结 4 1884
南旧
南旧 2021-01-01 09:09

I am having issues with wrapping text. I am generating some hexencoding encryption and the output is too long like:

827938828ey823876te37257e5t328er63

4条回答
  •  情书的邮戳
    2021-01-01 09:40

    You can't wrap that text as it's unbroken without any spaces. You need a JavaScript or server side solution which splits the string after a few characters.

    EDIT

    You need to add this property in CSS.

    word-wrap: break-word;

提交回复
热议问题