table 嵌套使用时边框会出现分离,让他们重合的办法是
为 table 添加 CSS 样式
border-spacing: 0;
或者为 table 添加属性
cellspacing="0"
另外为 table添加属性
cellpadding="0"
会将td
之间的间距设为0,适用于将table
放在td
中的情况。
table 嵌套使用时边框会出现分离,让他们重合的办法是
为 table 添加 CSS 样式
border-spacing: 0;
或者为 table 添加属性
cellspacing="0"
另外为 table添加属性
cellpadding="0"
会将td
之间的间距设为0,适用于将table
放在td
中的情况。