在HTML中,colspan="3"colspan="2"是用于<th><td>元素的属性,用于指定单元格跨越的列数。

colspan="3"表示该单元格跨越3列,占据了3个单元格的宽度。 colspan="2"表示该单元格跨越2列,占据了2个单元格的宽度。

所以,colspan="3"colspan="2"的区别在于占据的单元格宽度不同。

在这个table里 table border=1 style=margin-left 5;margin-right 5;margin-top 5px tr style=height 48px th style=width 14;text-align center;font-weight 350姓名th th style=width 16

原文地址: https://www.cveoy.top/t/topic/jc9s 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录