Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. Web API
  3. HTMLParagraphElement

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

HTMLParagraphElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2015年7月⁩.

HTMLParagraphElement 接口为操作<p> 元素提供了特殊属性(超出了其继承的常规HTMLElement 对象接口的属性)。

EventTarget Node Element HTMLElement HTMLParagraphElement

实例属性

从父元素HTMLElement 继承属性。

HTMLParagraphElement.align已弃用

字符串,是表示元素内容相对于周围上下文的对齐方式的枚举属性。可能的值有"left""right""justify""center"

实例方法

没有指定的方法,从父元素HTMLElement 继承方法。

规范

Specification
HTML
# htmlparagraphelement

浏览器兼容性

参见

  • 实现此接口的 HTML 元素:<p>

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp