img HTML元素
来源:百度文库 编辑:神马文学网 时间:2024/04/27 13:42:04
定义
在文档中嵌入图像或视频片断。
Embeds an image or a video clip in the document.
注释
当此元素接收到 input 焦点时,并不会触发 onfocus 事件,除非该元素已经与 MAP 元素相关联。
从 Internet Explorer 5 起支持下列图像和视频文件格式。
.avi .bmp .emf .gif .jpg, .jpeg .mov .mpg, .mpeg .png .wmf .xbm
当使用 IMG 元素显示静态图像时,请用 SRC 标签属性指定图像文件的 URL。当使用 IMG 元素显示视频片断或虚拟现实模型语言(VRML)世界时,请用 DYNSRC 标签属性指定 URL。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。
此元素是一个内嵌元素。
此元素不需要关闭标签。
This element does not fire the onfocus event when it receives the input focus, unless it has been associated with a MAP element.
The following image and video file formats are supported as of Internet Explorer 5.
.avi—Audio-Visual Interleaved (AVI) .bmp—Windows Bitmap (BMP) .emf—Windows Enhanced Metafile (EMF) .gif—Graphics Interchange Format (GIF) .jpg, .jpeg—Joint Photographic Experts Group (JPEG) .mov—Apple QuickTime Movie (MOV) .mpg, .mpeg—Motion Picture Experts Group (MPEG) .png—Portable Network Graphics (PNG) .wmf—Windows Metafile (WMF) .xbm—X Bitmap (XBM)
When using the IMG element to display a static image, specify the URL of the image file with the SRC attribute. When using the IMG element to display a video clip or virtual reality modeling language (VRML) world, specify the URL with the DYNSRC attribute.
The img element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is an inline element.
This element does not require a closing tag.
示例代码
演示示例:在HTML里插入图片
另见
input
在文档中嵌入图像或视频片断。
Embeds an image or a video clip in the document.
注释
当此元素接收到 input 焦点时,并不会触发 onfocus 事件,除非该元素已经与 MAP 元素相关联。
从 Internet Explorer 5 起支持下列图像和视频文件格式。
.avi .bmp .emf .gif .jpg, .jpeg .mov .mpg, .mpeg .png .wmf .xbm
当使用 IMG 元素显示静态图像时,请用 SRC 标签属性指定图像文件的 URL。当使用 IMG 元素显示视频片断或虚拟现实模型语言(VRML)世界时,请用 DYNSRC 标签属性指定 URL。
此元素在 Internet Explorer 3.0 及以上版本的 HTML 中可用,在 Internet Explorer 4.0 及以上版本的脚本中可用。
此元素是一个内嵌元素。
此元素不需要关闭标签。
This element does not fire the onfocus event when it receives the input focus, unless it has been associated with a MAP element.
The following image and video file formats are supported as of Internet Explorer 5.
.avi—Audio-Visual Interleaved (AVI) .bmp—Windows Bitmap (BMP) .emf—Windows Enhanced Metafile (EMF) .gif—Graphics Interchange Format (GIF) .jpg, .jpeg—Joint Photographic Experts Group (JPEG) .mov—Apple QuickTime Movie (MOV) .mpg, .mpeg—Motion Picture Experts Group (MPEG) .png—Portable Network Graphics (PNG) .wmf—Windows Metafile (WMF) .xbm—X Bitmap (XBM)
When using the IMG element to display a static image, specify the URL of the image file with the SRC attribute. When using the IMG element to display a video clip or virtual reality modeling language (VRML) world, specify the URL with the DYNSRC attribute.
The img element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.
This element is an inline element.
This element does not require a closing tag.
示例代码
演示示例:在HTML里插入图片
另见
input
img 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元素