Body 对象表示 HTML <body> 元素。
您可以使用 getElementsByTagName() 访问 <body> 元素:
提示:您还可以使用以下方法访问 <body> 元素文档正文属性。
您可以使用 document.createElement() 方法创建 <body> 元素:
var x = document.createElement("BODY");
Property | Description |
---|---|
aLink | Not supported in HTML5. See CSS :active Selector instead. Sets or returns the color of an active link in a document |
background | Not supported in HTML5. Use style.backgroundImage instead. Sets or returns the background image for a document |
bgColor | Not supported in HTML5. Use style.backgroundColor instead. Sets or returns the background color of a document |
link | Not supported in HTML5. See CSS :link Selector instead. Sets or returns the color of unvisited links in a document |
text | Not supported in HTML5. Use style.color instead. Sets or returns the color of the text in a document |
vLink | Not supported in HTML5. See CSS :visited Selector instead. Sets or returns the color of visited links in a document |
HTML 参考:HTML <body> 标签
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!