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,
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
This article mainly introduces HTML table labels and related line breaks. It provides a solution to force line breaks and force line breaks. For more information, see
What is table:The table's Html table is also the carrier of data.
The following is
TD with content automatically adapts to width:
Note:the width of TD must be setWord-wrap: Sets or retrieves whether the current row exceeds the bounds of the specified container to disconnect?> career changeNormal: Default value. Allow content to
In the table layout is often encountered because the table content changes caused by the layout confusion, this time we may have to stabilize the layout of the cell width to write dead, but we set the width but found beyond the width will
Today encountered a problem, the table inside the contents of all replaced this line, in the TD add attribute Word-break:break-all can.Compare several line-wrapping related properties and make a summary:White-space:normal natural display, that is,
Automatic line-wrapping problem, normal character line is more reasonable, and continuous digital and English characters are often the container brace big, it is a headache, the following is how CSS to achieve change
Method of the line
For
We all know that continuous English or digital can be the container is large, can not be based on the size of the container to automatically wrap, the following is how CSS will be the way they line!
For Div
1. (ie browser) white-space:normal;
Explanation of the Table-layout:fixed propertyIf you want a table fixed size, the inside text is forced to wrap (especially in a long string of English text, and there is no space between the case), in order to make the long text does not break the
How the contents of table cells are forced to wrap:Sometimes the contents of a table cell do not wrap, so this will seriously affect the user experience, the following is a brief introduction to how to implement the contents of the cell line
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.