【发布时间】:2017-06-27 02:48:13
【问题描述】:
博客:www.amedecrwanda.blogspot.com
在主页帖子上,我将表格设置为:<table cellpadding="0" cellspacing="50">
但它也会影响顶部的间距,将表格推到页面下方。任何人都解决了这个问题 - 保持列之间的间距相同,但消除顶部的间隙?
【问题讨论】:
标签: html html-table blogger cellspacing
博客:www.amedecrwanda.blogspot.com
在主页帖子上,我将表格设置为:<table cellpadding="0" cellspacing="50">
但它也会影响顶部的间距,将表格推到页面下方。任何人都解决了这个问题 - 保持列之间的间距相同,但消除顶部的间隙?
【问题讨论】:
标签: html html-table blogger cellspacing
删除这些行:
<div class="post-header">
<div class="post-header-line-1"></div>
</div>
【讨论】:
使表格的单元格间距为零。使用 CSS 为该特定表格添加边距。这样,你就可以从顶部控制空间(margin)的方式了。
<style>
table td{
margin:20px;
margin-top:0px;
}
</style>
<table cellspacing="">
...
</table>
【讨论】:
将此代码<table cellpadding="0" cellspacing="50"> 替换为<table cellpadding="0" cellspacing="">,当然,您应该添加@vishal kokate 建议的css 样式
【讨论】: