HTMLParagraphElement
HTMLParagraphElement 接口可以提供超过其继承的HTMLElement 对象额外的属性,用以操作 <p> 元素。
属性
Inherits properties from its parent, HTMLElement.
HTMLParagraphElement.align已弃用-
A
DOMStringrepresenting an enumerated property indicating alignment of the element's contents with respect to the surrounding context. The possible values are"left","right","justify", and"center".
Methods
No specific methods, inherits methods from its parent, HTMLElement.
Specifications
| Specification |
|---|
| HTML Standard # htmlparagraphelement |
Browser compatibility
BCD tables only load in the browser
See also
- The HTML element implementing this interface:
<p>.