html - 将页脚添加到 HTML 页面

标签 html html-table footer

我的 index.html 主要是一个表格,我希望最后一行 (TR) 始终位于底部,无论浏览器或屏幕大小如何。

我尝试将其用作 <table> 中的最后一行, 但它不起作用:

<tfoot>
  <td height=30>(c) My Company, 2011</td>
</tfoot>

你有什么推荐给我的?

最佳答案

<tfoot>
<tr>
  <td height=30>&copy; My Company, 2011</td>
</tr>
</tfoot>

你忘记了 tr 标签

关于html - 将页脚添加到 HTML 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6848459/

相关文章:

html - CSS页脚无法调整高度

Jquery 图标没有出现在 html 中

html - 如何向 div 中的表格添加水平滚动条?

html - 表格没有扩展 div 的整个宽度?

HTML:IE9 标准模式在每个页面上打印 TFOOT

html - 如何修复我的页脚背景图像以使其在移动设备上始终可见?

python - 无限滚动条不适用于 django

html - html 标题标签(<h1>、<h2>、<h3> 等)的默认字体大小(以像素为单位)是多少?

html - 使用 simple-line-icons 符号作为占位符

html - 为什么我的页脚边框出现两次?