We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

这篇翻译不完整。请帮忙从英语翻译这篇文章

 

HTMLDivElement 接口提供了一些特殊属性(它也继承了通常的 HTMLElement 接口)来操作div元素。

属性

属性继承自父类,HTMLElement

HTMLDivElement.align
这是一个 DOMString 表示一个指示元素内容相对于周围内容的对齐方式的可枚举属性。可取的值有 "left""right""justify",和 "center"

方法

没有特有的方法;方法继承自父类,HTMLElement

Specifications

Specification Status Comment
HTML Living Standard
HTMLDivElement
Living Standard No change from HTML5.
HTML5
HTMLDivElement
Recommendation No change from Document Object Model (DOM) Level 2 HTML Specification.
Document Object Model (DOM) Level 2 HTML Specification
HTMLDivElement
Obsolete No change from Document Object Model (DOM) Level 1 Specification.
Document Object Model (DOM) Level 1 Specification
HTMLDivElement
Obsolete Initial definition.

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
Feature Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes) (Yes) 1.0 (1.0) (Yes) (Yes) (Yes)

相关链接

  • 此HTML元素实现这个接口:<div>.

文档标签和贡献者

此页面的贡献者: Ratin
最后编辑者: Ratin,