Home > Article > Web Front-end > word-wrap_CSS/HTML
word-wrap : normal | break-word
Parameters:
normal : Allows content to break the specified container boundaries
break-word : Content will break within the boundaries. If necessary, intra-word line breaks (word-break) can also occur
Description:
Set or retrieve when the current line exceeds the specified container Whether to disconnect and change careers at the border. The corresponding script feature of
is wordWrap. Please see other books I have written.
Example:
div { word-wrap: break-word; }
word-break : normal | break-all | keep-all
Parameters:
normal : In accordance with the text rules of Asian and non-Asian languages, line breaks within words are allowed
break-all : This behavior is the same as normal for Asian languages. Breaks within any word of a line of non-Asian language text are also allowed. This value is suitable for Asian text that contains some non-Asian text
keep-all : Same as normal for all non-Asian languages. For Chinese, Korean, and Japanese, word breaks are not allowed. Suitable for non-Asian text that contains a small amount of Asian text
Description:
Sets or retrieves the intra-word wrapping behavior for text within an object. Especially when multiple languages appear.
For Chinese, break-all should be used. The corresponding script feature for
is wordBreak. Please see other books I have written.
Example:
div {word-break : break-all; }