Close to perfect CSS title, list overflow hidden

Source: Internet
Author: User
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<HTML xmlns = "http://www.w3.org/1999/xhtml ">
<Head>
<Meta http-equiv = "Content-Type" C/>
<Title> untitled document </title> <style type = "text/CSS">
<! --
. Div {
Padding: 0;
List-style-type: none;
Line-Height: 22px;
Margin-bottom: 10px;
Background: # cccccc;
Font-size: 12px;
Word-break: Break-all;/* sets or retrieves the line feed of text in an object. Especially in the case of multiple languages (the current word is disconnected and the line breaks, so Yang won't have half a word )*/
Height: 22px;/* If the height is set, CSS determines whether the text exceeds the Container Line Break */
Overflow: hidden;/* Hide excess parts */

}
-->
</Style>
</Head>
<Body>
<Div style = "width: 200px;">
<Ul>
<Li class = "Div"> when there are two groups, there are two groups, each of which has two groups. When there are two groups, each other has two groups. </LI>
<Li class = "Div"> In September 80 or 90, was the time when the team scored the three-member online shopping spree. </LI>
<Li class = "Div"> On www.zgcsd.com, sssssssssss has been upgraded to ssssssss </LI>
<Li class = "Div"> ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss </LI>
<Li class = "Div"> SSS sssss ssss sssssssss Ssssss SSS ssssssssssssssss SSS </LI>
</Ul>
</Div>
</Body>
</Html>

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.