HR 对象表示 HTML <hr> 元素。
您可以使用 getElementById() 访问 <hr> 元素:
您可以使用 document.createElement() 方法创建 <hr> 元素:
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the alignment of a horizontal line |
color | Not supported in HTML5. Use style.color instead. Sets or returns the color of a horizontal line |
noshade | Not supported in HTML5. Sets or returns whether a horizontal line should render in one solid color (noshaded) |
size | Not supported in HTML5. Use style.height instead. Sets or returns the height of a horizontal line |
width | Not supported in HTML5. Use style.width instead. Sets or returns the width of a horizontal line |
HTML 参考:HTML <hr> 标签
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!