CSS exceeds the specified width plus ellipsis

Source: Internet
Author: User

/*table-layout:fixed will make the table equally divided*/#TreeView1 Table{width:290px;Table-layout:fixed; }#TreeView1 Td:first-child{width:8%;}/*+ Select the next sibling node Note + There are spaces before and after*/#TreeView1 Td:first-child + TD{width:6%;}/*[attribute] An element that contains a property*/#TreeView1 Td[class]{width:80%;text-align: Left;}/*here's the point.*/#TreeView1 Td.node{White-space:nowrap;Overflow:Hidden;Text-overflow:ellipsis; }

Table-layout:fixed will make the table equal, but not nervous, you can use the selector to adjust the height of each column

Http://www.w3school.com.cn/cssref/css_selectors.asp

Especially for IE8 use CSS2 selector to control as much as possible.

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.