The Div object represents an HTML <div> element.
You can access a <div> element by using getElementById():
You can create a <div> element by using the document.createElement() method:
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the value of the align attribute of the <div> element |
The Div object also supports the standard properties and events.
HTML tutorial: HTML Blocks
HTML reference: HTML <div> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!