CSS:Tutorial four

1、CSS Tables

To specify table borders in CSS, use the border property.

The example below specifies a black border for <table>, <th>, and <td> elements:

table, th, td {
  border: 1px solid black;
}

Collapse Table Borders

The border-collapse property sets whether the table borders should be collapsed into a single border:

table {
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid black;
}

 

posted @ 2019-03-12 21:01  Nyan  阅读(130)  评论(0编辑  收藏  举报