Home > Web Front-end > CSS Tutorial > Detailed analysis of border-collapse attribute in CSS

Detailed analysis of border-collapse attribute in CSS

黄舟
Release: 2017-06-30 09:29:13
Original
2002 people have browsed it

Example

Set the merged border model for the table:

table
  {  border-collapse:collapse;
  }
Copy after login

If you don’t add this attribute, the border will be thick, and if you add it, it will become thinner

.tb_style {
font-size:11px;
color:#333333;
border-width
: 1px;
border-color
: #e5e5e5;
border-collapse: collapse;
}
.tb_style td {
border-width: 1px;
padding: 8px;
border-style
: solid;
border-color: #e5e5e5;
background-color: #ffffff;
}
Copy after login

Syntax:

border-collapse : separate | collapse
Copy after login

Parameters:
separate: Borders are independent (standard HTML)
rtl: Adjacent edges are merged

Description:
Sets or retrieves whether table rows and cell edges are merged together or separated according to standard HTML styles.
The corresponding script feature is borderCollapse. Please see other books I have written.

Example:

table { border-collapse: separate; }
Copy after login

Detailed analysis of border-collapse attribute in CSS


The above is the detailed content of Detailed analysis of border-collapse attribute in CSS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template