The input word is too long to automatically go to the next line word-wrap and word-break

If the end of the input box is a relatively long word, the word will be automatically arranged to the next line to achieve the purpose of not breaking the word, such as "description" in the figure below

 

However, in some scenarios, it is necessary to align the content of the input box without wrapping the line. At this time, you can add

style="word-break:break-all"

The effect is as follows:

 Meaning explained:

word-break:break-all Automatically wrap within a word, if a word is very long
word-wrap:break-word If a word is very long, do not automatically wrap

Guess you like

Origin blog.csdn.net/wangyuntuan/article/details/124118664