定義表示不可見的注釋。防止所包含的文本或者HTML源代碼被瀏覽器解析和顯示。 Indicates a comment that is not displayed. Prevents any enclosed text or HTML source code from being parsed and displayed in the browser window. 注釋COMMENT 元素將被看作無范圍的元素也不含任何子對象。 此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的腳本中可用。 在 Internet Explorer 6 中可用的 comment.length 屬性,將返回對象中的字符數(shù)。 此元素不改變顯示。 此元素需要關(guān)閉標(biāo)簽。 此元素可以包含其它HTML元素。此元素不能嵌套使用。 The COMMENT element is treated as a no-scope element and does not expose any children. This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0. The comment.length property, available as of Internet Explorer 6, returns the number of characters in the object. This element is not rendered. This element requires a closing tag. Comments can contain other HTML elements. Comments do not nest. 示例代碼<!-- This text will not appear in the browser window. --> |
|