Implement CSS for table tables

Source: Internet
Author: User
. Tablel
{
Border-collapse: collapse;/* key attribute: Merge the outer and outer borders of the table (in fact, the outer border of the table has 2px and 1px, and the outer border has 1px )*/
Border: solid #999;/* set border attributes; style (solid = solid line), color (#999 = gray )*/
Border-width: 1px 0 0 1px;/* set the Border Width: Top right bottom left = Corresponding: 1px 0 0 1px */
}
. Tablel Th {border: solid #999; border-width: 0 1px 1px 0; padding: 2px ;}
. Tablel TD {border: solid #999; border-width: 0 1px 1px 0; padding: 2px ;}
Note: When a CSS file is referenced on a page, you can drag the file directly or add the file in the header:
<Head runat = "server">
<Title> No title page </title>
<Link href = "default.css" rel = "stylesheet" type = "text/CSS"/>
</Head>
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.