What exactly are Word-wrap and word-break? Why do you have to repeat this problem? Is the question a problem?
We often need to "fix" a cliché "bug", which is the text of the automatic line wrapping problem. In professional terms, this expected
Source from
We often need to "fix" a cliché "bug", which is the text of the automatic line wrapping problem. In professional terms, this expected rendering is called "word wrap", which means that the text processor is capable of automatically
first, Word-wrap use:Grammar: Break-wordvalue Description:1, Normal is the default value, when its value for the normal control of continuous text wrapping (allow the content to open the boundaries of the container, in other words, the content can
What are these two things, I believe there are still a lot of people confused, will only be rote writing a word-wrap:break-word;word-break:break-all, such things to force the segmentation, or because these two things are too awkward, The same length,
Cssword-break: break-all and word-wrap: break-word can automatically wrap the content of a container such as DIV. However, there is a difference between the two. This article introduces the difference between css automatic line feed word-break:
Word-break: Break-all and word-wrap: Break-word can automatically wrap the content of a container such as Div.
Their differences are:
1. Word-break: Break-ALL: for example, if the DIV width is PX, its content will be automatically wrapped in PX. If
Differences between word-break work-wrap and wordwrapwordbreak
Word-break: [word breaking]
Definition: Define the handling method of automatic line feed. Note: Use word-break to enable the browser to wrap lines at any position.
Syntax: word-break:
1. word-break: break-all: for example, if the div width is PX, its content will be automatically wrapped in px. If the end of the line has a long English word (congratulation, etc ), it truncates the word and converts it to the backend part of the
In Div, text la s often occur, and line breaks are messy.Problem description: 1. If it is a full English string, it does not contain any symbols (including spaces) and does not wrap automatically.2. If the English and Chinese characters are mixed, a
HTML blank character processing rules
In HTML, "Blank Space" includes space, tab, and line feed (CR/LF.
We know that by default, all blank characters in the HTML source code are displayed as spaces, and multiple consecutive blank characters are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.