The specific analysis of Border-collapse property in CSS

Source: Internet
Author: User

Instance

To set the merge border model for a table:

Table  {  border-collapse:collapse;  }

If you do not add this attribute, the border will be very thick, and the addition will be 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;}

Grammar:

Border-collapse:separate | Collapse

Parameters:
Separate: Border independent (standard HTML)
RTL: Adjacent edges are merged

Description
Sets or retrieves whether the edges of a table's rows and cells are merged or separated by a standard HTML style.
The corresponding script attribute is bordercollapse. Please refer to the other bibliography I have written.

Example:

Table {border-collapse:separate;}

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.