pre - HTML元素
来源:百度文库 编辑:神马文学网 时间:2024/05/03 10:34:02
定义
以固定宽度字体显示文本。
Renders text in a fixed-width font.
注释
PRE 元素内的文字是已经格式化的。空格和回车都是保留的。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。
此元素是块元素。
此元素需要关闭标签。
Text within the PRE element is formatted. Spaces and carriage returns are preserved.
This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is a block element.
This element requires a closing tag.
示例代码
以固定宽度字体显示文本。
Renders text in a fixed-width font.
注释
PRE 元素内的文字是已经格式化的。空格和回车都是保留的。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。
此元素是块元素。
此元素需要关闭标签。
Text within the PRE element is formatted. Spaces and carriage returns are preserved.
This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is a block element.
This element requires a closing tag.
示例代码
此文本的格式化效果与输入时完全相同。
pre - HTML元素
html HTML元素
HTML元素参考手册
a--HTML元素
acronym--HTML元素
address--HTML元素
applet--HTML元素
area--HTML元素
b HTML元素
base HTML元素
basefont HTML元素
bgsound HTML元素
big HTML元素
blockquote HTML元素
body HTML元素
br HTML元素
button HTML元素
center HTML元素
cite HTML元素
code HTML元素
col HTML元素
comment HTML元素
dd HTML元素
del HTML元素