Skip to content

Instantly share code, notes, and snippets.

@narutolby
Last active December 22, 2015 02:18
Show Gist options
  • Save narutolby/6402355 to your computer and use it in GitHub Desktop.
Save narutolby/6402355 to your computer and use it in GitHub Desktop.

#<br>

  • br元素用来表示一行的换行符

  • 允许内容

  • 允许属性

  • 额外的限制和警告

    • br元素的clear属性已经过时,用CSS代替
  • 标签省略

    • br元素必须是一个空元素,一个br元素必须有开始标签,但 是不能有结束标签
  • 允许的父级元素

    • 任何可以包含分句的元素
  • DOM接口 javascript interface HTMLBRElement : HTMLElement {};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment