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