border-collapse: collapse;
时间: 2023-09-03 15:14:16 浏览: 162
一个属性border-collapse解决Table的边框问题
5星 · 资源好评率100%
border-collapse: collapse;是CSS属性,用于设置表格的边框是否合并。当设置为collapse时,表格的行和单元格之间的边框会合并,相邻单元格会共用边框,不会出现相邻单元格边框加粗的情况。\[1\]\[2\]这是border-collapse属性的默认值,也就是说每个单元格拥有独立的边框,采用separated-border表格渲染模型。\[3\]
#### 引用[.reference_title]
- *1* [border-collapse:collapse; 表示折叠边框](https://blog.csdn.net/weixin_30905981/article/details/96387926)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [CSS系列之表格边框 border-collapse](https://blog.csdn.net/weixin_62277266/article/details/122693657)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文