The text exceeds the need to hide and display the ellipsis this is often used in the work, I think a lot of people have come across it, there are two ways to solveThe first, with the program to open the interception of character length, this is
The HTML is as follows:class= "box">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Div >The CSS code is as follows:. Box { width:50px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}Online someone said compatibility IE7 need to add This sentence,
This effect is based on a label that is not implemented in table"Display:inline-block;white-space:nowrap;width:100px;overflow:hidden; "href=" ">{{row.username}}The above can achieve the picture effectWhite-space:nowrap No Line breakOverflow:hidden
Method One:
Copy Code code as follows:
Strings of arbitrary length
Description: The advantage is that the content can be any HTML element, including hyperlinks and pictures, etc., in the IE6 will also automatically
In the previous article I've already talked about 3 ways to draw curves in canvas:arc,arcto , and Quadraticcurveto. They all have one thing in common, that is, the curves they draw can only be tilted aside, Today's Beziercurveto and their biggest
Someone would ask, why I took text-overflow out alone to explain. Previously, when a line of content is not complete, you want to display the ellipsis, you need to use JavaScript and other means.But CSS3 introduced the text-overflow ellipsis
Verification CodeThe Verification Code (CAPTCHA) is the abbreviation for "Completely Automated public Turing test to tell Computers and humans Apart" (fully automated computer-and human-Turing test), is a public automatic program that distinguishes
Code: Overflow:hidden; White-space:nowrap; Text-overflow:ellipsis; Key code: text-overflow:ellipsis; Explanation: The simple understanding is that I want to limit the text to one line (white-space:nowrap;), that the line is bound (width), and that
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.