CSS 8.1

Source: Internet
Author: User

1.

The Border-collapse property sets whether the table border is collapsed to a single border:

Table

{

Border-collapse:collapse;

}

If there is no rule! The Doctype,border-collapse property may cause unexpected errors.

2. Make a beautiful form

<HTML><Head><styletype= "Text/css">#customers{font-family:"Trebuchet MS", Arial, Helvetica, Sans-serif;width:100%;Border-collapse:collapse;  }#customers td, #customers th{font-size:1em;Border:1px solid #98bf21;padding:3px 7px 2px 7px;  }#customers th{font-size:1.1em;text-align: Left;Padding-top:5px;Padding-bottom:4px;Background-color:#A7C942;Color:#ffffff;  }#customers Tr.alt TD{Color:#000000;Background-color:#EAF2D3;  }</style></Head><Body><TableID= "Customers"><TR><th>Company</th><th>Contact</th><th>Country</th></TR><TR><TD>Apple</TD><TD>Steven Jobs</TD><TD>USA</TD></TR><TRclass= "Alt"><TD>Baidu</TD><TD>Li Yanhong</TD><TD>China</TD></TR><TR><TD>Google</TD><TD>Larry Page</TD><TD>USA</TD></TR><TRclass= "Alt"><TD>Lenovo</TD><TD>Liu Chuanzhi</TD><TD>China</TD></TR><TR><TD>Microsoft</TD><TD>Bill Gates</TD><TD>USA</TD></TR><TRclass= "Alt"><TD>Nokia</TD><TD>Stephen Elop</TD><TD>Finland</TD></TR></Table></Body></HTML>

CSS 8.1

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.