It is a practical method to change the table border style with CSS.

Source: Internet
Author: User

It is a practical method to change the table border style with CSS.

Production method:
Copy the following code to <body> ~ </Body>, this is to hide the bottom border
<Table border = "1" cellpadding = "0" cellspacing = "0" style = "border-collapse: collapse; border-bottom-width: 0 "bordercolor =" #111111 "width =" 90 ">
<Tr align = "center">
<TD style = "border-bottom-style: none; border-bottom-width: Medium" Height = "25"> hide </TD>
</Tr>
</Table>

Copy the following code to <body> ~ </Body>, this is to hide the upper border
<Table border = "1" cellpadding = "0" cellspacing = "0" style = "border-collapse: collapse; border-top-width: 0 "bordercolor =" #111111 "width =" 90 ">
<Tr align = "center">
<TD Height = "25" style = "border-top-style: none; border-top-width: Medium"> hide the upper border </TD>
</Tr>
</Table>

Copy the following code to <body> ~ </Body>, this is to hide the Left Border
<Table border = "1" cellpadding = "0" cellspacing = "0" style = "border-collapse: collapse; border-left-width: 0 "bordercolor =" #111111 "width =" 90 ">
<Tr align = "center">
<TD style = "border-left-style: none; border-left-width: Medium" Height = "25"> hide the Left Border
</TD>
</Tr>
</Table>

Copy the following code to <body> ~ </Body>, this is to hide the right border
<Table border = "1" cellpadding = "0" cellspacing = "0" style = "border-collapse: collapse; border-right-width: 0 "bordercolor =" #111111 "width =" 90 ">
<Tr align = "center">
<TD style = "border-right-style: none; border-right-width: Medium" Height = "25"> hide the right border
</TD>
</Tr>
</Table>

Related Article

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.