HTMLBRElement

HTMLBRElement 接口代表一个 HTML 换行元素 (<br>),它从 HTMLElement 继承。

属性

从父类 HTMLElement 继承属性。

HTMLBRElement.clear
Is a DOMString indicating the flow of text around floating objects.

方法

无具体方法;从父类 HTMLElement 继承方法

规范

规范 状态 备注
HTML Living Standard
HTMLBRElement
Living Standard No change from HTML5
HTML5
HTMLBRElement
Recommendation No change from Document Object Model (DOM) Level 2 HTML Specification

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLBRElementChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
clear
DeprecatedNon-standard
Chrome Full support 1Edge Full support 12Firefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

参见

  • HTML element implementing this interface: <br>