Table border does not appear

Source: Internet
Author: User

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;">&nbsp;</Td><TdStyle= "border:1px solid blue;">&nbsp;</Td><TdStyle= "border:1px solid blue;">&nbsp;</Td><TdStyle= "border:1px solid blue;">&nbsp;</Td></Tr></Table></Td><Td><TableStyle= "border:1px solid red;border-collapse:collapse;"><Tr><TdStyle= "border:1px solid blue;">&nbsp;</Td><TdStyle= "border:1px solid blue;">&nbsp;</Td><TdStyle= "border:1px solid blue;">&nbsp;</Td><td Style= "border:1px solid blue;" >&nbsp;  </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

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.