HTMLUListElement
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.
HTMLUListElement
接口提供特定的属性(除了常规 HTMLElement
接口之外,它还可以通过继承来使用),用于操作无序列表(<ul>
)元素。
实例属性
从其父接口 HTMLElement
继承属性。
HTMLUListElement.type
已弃用-
一个字符串,反映
type
属性并定义要用于显示的标记种类。这些值依赖于浏览器,从未标准化。 HTMLUListElement.compact
已弃用-
一个布尔值,指示应减小列表项之间的间距,此属性仅反映
compact
属性,不考虑现代页面中用于该行为的line-height
CSS 属性。
实例方法
没有特定的方法,从其父接口 HTMLElement
继承方法。
规范
Specification |
---|
HTML # htmlulistelement |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLUListElement | ||||||||||||
compact | ||||||||||||
type |
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 元素:
<ul>