input type=image, HTML元素

来源:百度文库 编辑:神马文学网 时间:2024/04/27 18:51:12
定义
创建一个图像控件,该控件被点击后将导致表单立即被提交。
Creates an image control that, when clicked, causes the form to be immediately submitted.
注释
x 坐标将以控件名称后加 .x 提交,y 坐标将以控件名称后加 .y 提交。任何 value 属性都将被忽略。src 属性指定了 IMG 元素。
从 Internet Explorer 5 起支持下列图像和视频文件格式。
.avi .bmp .emf .gif .jpg, .jpeg .mov .mpg, .mpeg .png .wmf .xbm
此元素在 Internet Explorer 3.0 及以上版本的 HTML 和脚本中可用。
此元素是一个内嵌元素。
此元素不需要关闭标签。
The x-coordinate is submitted under the name of the control with .x appended, and the y-coordinate is submitted under the name of the control with .y appended. Any value property is ignored. The src property specifies the IMG 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)
The INPUT type=image element is available in HTML and script as of Internet Explorer 3.0.
This element is an inline element.
This element does not require a closing tag.
示例代码
请输入你的姓名:

演示示例
另见
img,input
相关教程和示例代码
HTML表单