Today in the report, found that the last line hidden after the bottom of the entire report box will not be displayed, guessing that TD's border is hidden but the table does not set the border, resulting in the bottom border does not appear. Therefore, the problem is resolved after setting the table border. The table and TD border relationships are as follows:
<Table><Tr><Td><TableStyle= "border:1px solid red;"><Tr><TdStyle= "border:1px solid blue;"> </Td><TdStyle= "border:1px solid blue;"> </Td><TdStyle= "border:1px solid blue;"> </Td><TdStyle= "border:1px solid blue;"> </Td></Tr></Table></Td><Td><TableStyle= "border:1px solid red;border-collapse:collapse;"><Tr><TdStyle= "border:1px solid blue;"> </Td><TdStyle= "border:1px solid blue;"> </Td><TdStyle= "border:1px solid blue;"> </Td><td Style= "border:1px solid blue;" > </td></tr></table> </td></ TR></table>
The FF results are as follows:
- Left is unspecified border-collapse (default is separate).
- On the right, Border-collapse is specified as collapse.
IE results as follows:
- Left is unspecified border-collapse (default is separate).
- On the right, Border-collapse is specified as collapse.
Compatibility
It can be seen that in the event of overlap, Firefox covers table with TD, and IE is covered TD with Table.
Table Line FAQs:
1. The table border overlaps the table cell lines. [With Border-collapse:collapse solution]
2. Nested tables overlap with nested table edges. [With Border-top|left|right|bottom solution]
3. The problem of nesting tables is not aligned with nested tables. [Adopt table-layout:fixed; solve]
Table border does not appear