HTMLTableElement: createTFoot() メソッド
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
createTFoot()
は HTMLTableElement
オブジェクトのメソッドで、この <table>
に関連付けられた <tfoot>
要素を返します。表内にフッターが存在しない場合、このメソッドはそれを作成して返します。
メモ:
フッターが存在しない場合、 createTFoot()
は新しいフッターを表に直接挿入します。 Document.createElement()
を使用して新しい <tfoot>
要素を作成する場合とは異なり、フッターを別途追加する必要はありません。
構文
js
createTFoot()
引数
なし。
返値
例
js
let myfoot = mytable.createTFoot();
// myfoot === mytable.tFoot は真になります
仕様書
Specification |
---|
HTML # dom-table-createtfoot-dev |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
createTFoot |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.