国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

使用border-collapse

實例解析:

border-collapse屬性用來設(shè)置表格的邊框是否被合并為一個單一的邊框。

可以設(shè)置的屬性值有:

 ● separate:默認(rèn)值,邊框會被分開;不會忽略 border-spacing 和 empty-cells 屬性? ??

 ● collapse:如果可能,邊框會合并為一個單一的邊框;會忽略 border-spacing 和 empty-cells 屬性? ??

說明:所有主流瀏覽器都支持 border-collapse屬性;如果沒有指定!DOCTYPE,border-collapse屬性可能產(chǎn)生意想不到的效果。


繼續(xù)學(xué)習(xí)
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <style> table { border-collapse: collapse; } table, td, th { border: 1px solid black; padding:10px 15px; } </style> </head> <body> <table> <tr> <th>姓名</th> <th>年齡</th> </tr> <tr> <td>Peter</td> <td>20歲</td> </tr> <tr> <td>Griffin</td> <td>23歲</td> </tr> </table> </body> </html>
提交重置代碼