colspan 和 rowspan 何时可以在 HTML 表格中使用?
我和一位同事很好奇 colspan
和 rowspan
何时可以在 HTML 表格中使用。
我们尝试了谷歌和维基百科,但答案似乎仍然困扰着我们。
我认为这可能是从 HTML 2 开始,或者 90 年代初到中期,但他坚持说直到 2000 年或更晚......
A co-worker and I are curious about when colspan
and rowspan
became available for usage in HTML tables.
We tried Google and Wikipedia, but the answer still seems to elude us.
I thought it might have been since HTML 2, or early-to-mid-90s, but he insists it wasn't until 2000 or later....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
RFC 1942 在 96 年 5 月引入了表,该 RFC 包含行跨度,因此这是最早实现它们的官方文档。
https://www.rfc-editor.org/rfc/rfc1942
编辑 - 应该提到这是对 html 2.0 的改进
RFC 1942 introduced tables in May 96, the rfc includes rowspans so this is the earliest official document implementing them.
https://www.rfc-editor.org/rfc/rfc1942
Edit - Should mention that this is a refinement for html 2.0
至少早在 1997 年的 HTML 4 规范版本中就提到了它们。 编辑 它们也是 HTML 3 中的;它们似乎和
本身一样存在。
They're mentioned in versions of the HTML 4 spec as far back as 1997 at least. edit They're also in HTML 3; they seem to have been around as long as
<table>
itself.根据 this,它们在 < a href="http://www.w3.org/TR/REC-html32" rel="nofollow">HTML 3.2,日期为 1997 年 1 月 14 日。所以,很久以前了。
According to this, they are defined in HTML 3.2, which is dated 14 Jan 1997. So, a long way back.
就 W3C 而言,它看起来像 HTML 3.2,所以是 1997 年 1 月。 3.2 规范,但我在 2.0 规范。
如果您没有严格遵守 W3C,答案似乎是1996 年 5 月。请参阅 RFC 1942 第 2 页顶部的示例,其中添加了对表格的支持。
As far as W3C is concerned, it looks like HTML 3.2, so January 1997. Both attributes are mentioned in the 3.2 spec, but I don't see them anywhere in the 2.0 spec.
If you're not strictly following W3C, the answer seems to be May 1996. See the example at the top of page 2 of RFC 1942, which adds support for tables.
它们是 HTML3 格式的: http://www.w3.org/MarkUp/html3/tables .html
Well they are in HTML3: http://www.w3.org/MarkUp/html3/tables.html