Text-overflow: an alternative application of ellipsis non-IE browsers!

Source: Internet
Author: User
Text-overflow: ellipsis is a great choice. On win, we all know that IE and Opera can be done. Will you be excited if you look at the following code?
Text-overflow: ellipsis;
-O-text-overflow: ellipsis;
-Icab-text-overflow: ellipsis;
-Khtml-text-overflow: ellipsis;
-Moz-text-overflow: ellipsis;
-Webkit-text-overflow: ellipsis;
Don't be excited. All the support is supported. Other support is for kids. The private attributes of browsers other than IE start with-xxx-.-o-is the private attribute of Opera with Presto engine, and-icab-is the private attribute of iCab, -khtml-is a browser with KHTML engine (such as Konqueror Safari) and-moz-is a browser with mozilla Gecko as the engine (such as Firefox and mozilla) -webkit-is a browser (such as Safari and Swift) that uses the Webkit rendering engine (derived from KHTML ).
It doesn't mean that like-moz-text-overflow is now useful, but an imaginary way of writing. When a browser developer decides to support a property that has not yet been recognized, generally,-xxx-is added before the property, indicating that this property belongs to the private property of the browser. Of course, most of these properties come from CSS3, this method may be useful only after the browser is upgraded.
This code is seen on css3.info. It was not written in this way before, and I don't know when to change it.
Firefox implements text-overflow with almost a row drop. One is JS + XBL, and the other is CSS: after. In the past, I tried to use xbl to monitor the combination of text width: after, you don't have to think about it as long as you know that I failed. If a single XBL can work, no one else needs to use JavaScript to write it.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.