Word-wrap&&word-break, odd and even rows, column settings style

Source: Internet
Author: User
1, Word-wrap and word-break distinguish. SOURCE Scenario: Mechanical Lease MVC Driver Information View: When the text of the note is many, the value of the first column looks like this: solution: Set the TD for Table to wrap automatically.    First table set fixed style: table-layout:fixed and then change the TD style to: TD {Word-wrap:break-word; }。 2, odd even row, column set style. Source scenario: After you set the line break, the first column is too wide, and the TD width is set in inline style, as shown in: solution: The last reason is that the table width is set in the Table tab. The column lines of the entire table may be adaptive, and the default column width is increased. After removing the width of the table, we set the width of the TD column you need. What I need is the width of the odd sequence set for each row.    Odd sequence, with pseudo selector: Table Td:nth-child (2n+1) {width:70px; }

Word-wrap&&word-break, odd and even rows, column settings style

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.