HTML

1个成员

HTML元素 - html

发表于 2016-12-31 2986 次查看

定义

表明文档包含 HTML 元素。

Identifies the document as containing HTML elements.

注释

此元素在 Internet Explorer 及以上版本3.0 的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。

在 Internet Explorer 6 及以后版本中,如果你使用 !DOCTYPE 声明指定为标准兼容模式,此元素将代表画布-既文档内容所能显示的整个区域。当你切换到标准兼容模式时,此元素也将作为所有没有设置定位基准的定位对象的定位容器。如果 !DOCTYPE 声明并不指定标准兼容模式,且使用较早版本的 Internet Explorer,则 body 对象代表文档内容所能显示的整个区域。

此元素不改变显示。

此元素需要关闭标签。

This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

With Internet Explorer 6 and later, when you use the !DOCTYPE declaration to specify standards-compliant mode, this element represents the canvas—the entire surface onto which a document's contents can be rendered. When you switch on standards-compliant mode, this element also becomes the positioning container for positioned elements that don't have a positioned parent. When the !DOCTYPE declaration does not specify standards-compliant mode, and with earler versions of Internet Explorer, the body object represents the entire surface onto which a document's contents can be rendered.

This element is not rendered.

This element requires a closing tag.

元素示例代码

<html>
<body>
这是一个非常简单的HTML文件。
</body>
</html>
发表回复
你还没有登录,请先登录注册