The table is not extended by content, and the excess content is changed to the ellipsis (css) and ellipsis (ellipsis) css.
Today, I wrote code and found that the table will be greatly enriched by content, affecting the overall layout of the webpage.
Baidu has a solution. b
When the css exceeds the limit, the ellipsis is displayed. If the css exceeds the limit, the ellipsis is displayed.
Code: overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
Key code: text-overflow: ellipsis;
Explana
Too many characters in the list overflow using the ellipsis css method, ellipsis css
We often encounter too many texts. To avoid breaking the original layout, we need to replace the extra texts with ellipsis to achieve the following effects:
There are too many words, wife
CSS-when the text exceeds the specified width, it is hidden and displayed as a ellipsis. css-ellipsis
Common text truncation (applicable to inline and block ):
. Text-overflow {
Display: block;/* Add inline objects */
Width: 25em;
Word-break: keep-all;/* Do not wrap */
White-space: nowrap;/* Do not wrap */
Overflow: h
CSS implements single-line and multi-line text overflow to show ellipsis, and css single-line overflow ellipsis
If you use the ellipsis (ellipsis) for overflow display of a single line of text, you must use the text-overflow:
CSS control shows the excess part. It is displayed with the ellipsis and css ellipsis.
Often used, but I often forget that I am not writing css, so remember:
Set the restricted width first,
Display: block; white-space: nowrap; overflow: hidden; text-overflow:
How to Use CSS to extract titles and use ellipsis to represent excess parts, css ellipsis
How to extract titles using CSS and use ellipsis to represent excess parts:
Many websites have this effect. When the news title is too long,
CSS-when the text exceeds the specified width, it is hidden and displayed as a ellipsis. css-ellipsis
Common text truncation (applicable to inline and block ):
. Text-overflow {
Display: block;/* Add inline objects */
Width: 25em;
Word-break: keep-all;/* Do not wrap */
White-space: nowrap;/* Do not wrap */
Overflow: h
How to Use CSS to extract titles and use ellipsis to represent excess parts, css ellipsis
How to extract titles using CSS and use ellipsis to represent excess parts:Suggestion: writing code as much as possible can effectively impr
CSS, j's single line, multi-line text overflow display ellipsis, css ellipsis
In the project, the vertical length of the initial Page is too long due to excessive description texts, which also reduces the utilization of the remaining information. Therefore, when there are too many texts, it is necessary to initialize t
Css controls whether a single or multiple lines of text overflow are shown as ellipsis (...) and css ellipsis (...).
P: first-child {background-color: pink; width: 150px; line-height: 28px; font-size: 20px;
Overflow: hidden;
Text-overflow: ellipsis;
White-space: nowrap;}
When the CSS text exceeds the div or span, the ellipsis and cssdivspan ellipsis are displayed.
We often need to display the excessive text length as a ellipsis:
Thought:
First, set the width and hide the excess parts.If the number is exceeded, the ellipsis is displayed at
firefox7.0 begins to be compatible with text-overflow:ellipsis; In this case, the next ellipsis can be done browser-compatible, the code snippet is:
The code is as follows
Copy Code
width:200px;/* Set Width * *white-space:nowrap;/* set do not fold line * *text-overflow:ellipsis;/*, this is the ellipsis.-o-text-overflow:ellipsis;/* compatible opera*/overflow:hidden;/* set beyond
Here is an example of a single-line text overflow Here is an example of a single-line text overflow Here is an example of a single-line text overflow Here is an example of a single-line text overflow hereHere is an example of a multiline text overflow here is an example of a multiline text overflow here is an example of a multiline text overflow here is an example of a multiline text overflowHere is an example of a multiline text overflow here is an example of a multiline text overflow here is a
CSS implements single-line and multi-line text overflow to display ellipsis (...), Css
If you use the ellipsis (ellipsis) for overflow display of a single line of text, you must use the text-overflow: ellipsis attribute. Of course
CSS control text Beyond the specified width is replaced with ellipses, CSS control text does not wrap.Generic truncation of text (for inline and block):. text-overflow {display:block;/* inline objects need to be added */Width:31em;word-break:keep-all;/* does not change the line */white-space:nowrap;/* does not change the line */overflow:hidden;/* content is hidden when content is out of width */text-overflo
CSS single row overflow text display ellipsis... method (compatible with IE ff) (convert)
Html
Code :
CSS code:Div {Width: 200px;/* basic definition of the container */Height: 200px;Background-color: # Eee;}
/* Style under ie */P span {Display: block;Width: 200px;/* defines the width. Modify the width as needed */Overflow: hidden;White-space: nowrap;Text
CSS control text beyond the specified width is replaced with ellipses, CSS control text does not wrap. Generic truncation of text (for inline and block):. text-overflow {display:block;/* inline objects need to be added */Width:31em;word-break:keep-all;/* does not change the line */white-space:nowrap;/* does not change the line */overflow:hidden;/* content is hidden when content is out of width */text-overfl
CSS text wrapping and ellipsisPosted in 2011/04/22Some of the relevant properties and W3Schools are referenced below:The White-space property sets how to handle whitespace within an element.Http://www.w3schools.com/css/pr_text_white-space.aspWhite-space:normal | Nowarp | Pre | Pre-line | Pre-warp | InheritWord-warp property setting How to handle a word's wrappingHttp://www.w3schools.com/css3/css3_pr_word-wr
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.