CSS中border-collapse屬性的具體分析

來源:互聯網
上載者:User

執行個體

為表格設定合并邊框模型:

table  {  border-collapse:collapse;  }

如果不加這個屬性,邊框就會很粗,加了就變細

.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;}

文法:

border-collapse : separate | collapse

參數:
separate :  邊框獨立(標準HTML)
rtl :  相鄰邊被合并

說明:
設定或檢索表格的行和儲存格的邊是合并在一起還是按照標準的HTML樣式分開。
對應的指令碼特性為borderCollapse。請參閱我編寫的其他書目。

樣本:

table { border-collapse: separate; }

相關文章

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.