HTMLBRElement

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.

HTMLBRElement 接口表示 HTML 换行元素(<br>)。它继承自 HTMLElement

EventTarget Node Element HTMLElement HTMLBRElement

实例属性

继承父类 HTMLElement 的属性。

HTMLBRElement.clear 已弃用

一个表示文本围绕浮动对象的流动方式的字符串。

实例方法

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

规范

Specification
HTML
# htmlbrelement

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
HTMLBRElement
clear
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.

参见

  • 实现该接口的 HTML 元素:<br>