HTMLDivElement
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.
HTMLDivElement
接口提供了一些特殊属性(它也继承了通常的 HTMLElement
接口)来操作 <div>
元素。
must be a string
属性
属性继承自父类,HTMLElement
。
HTMLDivElement.align
已弃用-
这是一个
DOMString
表示一个指示元素内容相对于周围内容的对齐方式的可枚举属性。可取的值有"left"
,"right"
,"justify"
,和"center"
。
方法
没有特有的方法;方法继承自父类,HTMLElement
。
规范
Specification |
---|
HTML # htmldivelement |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLDivElement | ||||||||||||
align |
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 元素实现了这个接口:
<div>
。