HTMLLegendElement
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.
HTMLLegendElement
是一个允许访问 <legend>
元素属性的接口,它从 HTMLElement
接口继承属性和方法。
实例属性
从其父接口 HTMLElement
继承属性。
HTMLLegendElement.align
已弃用-
表示关于表单集对齐的字符串。
HTMLLegendElement.form
只读-
表示图例所属的表单的
HTMLFormElement
。如果图例有一个 fieldset 元素作为其父元素,则此属性返回与父 form 属性相同的值。否则,它将返回null
。
实例方法
没有特定的方法,从其父接口 HTMLElement
继承方法。
规范
Specification |
---|
HTML # htmllegendelement |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLLegendElement | ||||||||||||
align | ||||||||||||
form |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Deprecated. Not for use in new websites.
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.
参见
- 实现此接口的 HTML 元素:
<legend>