Table west border style, table border Style
Table
{
Border-collapse: collapse;
Border: none;
Width: 200px;
}
Td
{
Border: solid #000 1px;
}
What are the CSS style settings for the table border? More details
1. All <table> are fine borders.
Table, table td, table th {border: 1px solid # ff0000; border-collapse: collapse ;}
2. If the specified <table> is a fine border, place <table> in <div> and use ID as the index, as shown below:
# MdA table, # mdA table td, # mdA table th {border: 1px solid # ff0000; border-collapse: collapse ;}
<Div id = "mdA">
<Table width = "400" border = "0" cellspacing = "0" cellpadding = "0">
<Tr>
<Td> </td>
<Td> </td>
</Tr>
<Tr>
<Td> </td>
<Td> </td>
</Tr>
</Table>
</Div>
How does CSS define different color styles for the horizontal and vertical borders of a Table?
Likewise.
Or use border to define
If you want to define all tables on the page, you can define them as follows:
Table {
Border-top: 1px solid # F00;/* top border */
Border-bottom: 1px solid # F00;/* lower border */
Border-left: 1px solid #000;/* left border */
Border-right: 1px solid #000;/* right border */
}
If you only define a table, you can define it as follows:
. Colorfultable {
Border-top: 1px solid # F00;/* top border */
Border-bottom: 1px solid # F00;/* lower border */
Border-left: 1px solid #000;/* left border */
Border-right: 1px solid #000;/* right border */
}
====================
If all the tables on the page need to be defined, the following can be defined:
Table td {
Border-top: 1px solid # F00;/* top border */
Border-bottom: 1px solid # F00;/* lower border */
Border-left: 1px solid #000;/* left border */
Border-right: 1px solid #000;/* right border */
}
If you only define a table, you can define it as follows:
. Colorfultable td {
Border-top: 1px solid # F00;/* top border */
Border-bottom: 1px solid # F00;/* lower border */
Border-left: 1px solid #000;/* left border */
Border-right: 1px solid #000;/* right border */
}
<Table border = "0" cellspacing = "0" cellpadding = "0" class = "colorfultable">