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