Html CSS 表格单元格填充和单元格间距?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1285217/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 00:36:27  来源:igfitidea点击:

CSS table cellpadding and cellspacing?

htmlcss

提问by ParisNakitaKejser

Possible Duplicate:

How to set cellpadding & cellspacing in CSS?

可能的重复:

如何在 CSS 中设置单元格填充和单元格间距?

i have a little problem, i don't know how i can make my CSS style to remove cellpadding and cellspacing.

我有一个小问题,我不知道如何让我的 CSS 样式删除单元格填充和单元格间距。

i hobe i can be helpet.

我希望我可以帮助。

回答by chrissr

table {  
    border-collapse: collapse;
}
th, td {
    padding: 0;
}