当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > DOM Image 对象

HTML DOM
DOM TableRow 对象
DOM Textarea 对象
DOM Window 对象

HTML DOM 中的 DOM Image 对象


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 993 ::
收藏到网摘: n/a

Image Object
Image 对象

The Image object represents an HTML img element. For each instance of an HTML <img> tag in a document, an Image object is created.
Image对象代表HTML的img元素。每当HTML有<img>标签,Image对象就建立了

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

Image Object Properties
图片对象属性

Property
属性
Description
描述
IE F O W3C
align Sets or returns how to align an image according to the surrounding text
设置或返回怎样根据周围的文字来将图片进行对齐
5 1 9 Yes
alt Sets or returns an alternate text to be displayed, if a browser cannot show an image
当浏览器不能显示图片的时候设置或返回需要显示的交替文字
5 1 9 Yes
border Sets or returns the border around an image
设置或返回图片的边框
4 1 9 Yes
complete Returns whether or not the browser has finished loading the image
返回浏览器是否已经把图片加载完毕
4 1 9 No
height Sets or returns the height of an image
设置或返回图片的高度
4 1 9 Yes
hspace Sets or returns the white space on the left and right side of the image
设置或返回图片的左以及右的空白距离
4 1 9 Yes
id Sets or returns the id of the image
设置或返回图片的id
4 1 9 Yes
isMap Returns whether or not an image is a server-side image map
返回图片是否为服务端热点图片
5 1 9 Yes
longDesc Sets or returns a URL to a document containing a description of the image
设置或返回到达包含图片描述文档的URL
6 1 9 Yes
lowsrc Sets or returns a URL to a low-resolution version of an image
设置或返回达到一低分辨率图片的URL
4 1 9 No
name Sets or returns the name of an image
设置或返回图片的name
4 1 9 Yes
src Sets or returns the URL of an image
设置或返回图片的URL
4 1 9 Yes
useMap Sets or returns the value of the usemap attribute of an client-side image map
设置或返回客户端热点图片中usemap属性的值
5 1 9 Yes
Sets or returns the white space on the top and bottom of the image
设置或返回图片上以及下的空白间隙
4 1 9 Yes
width Sets or returns the width of an image
设置或返回图片的宽度
4 1 9 Yes

Standard Properties
标准属性

Property
属性
Description
描述
IE F O W3C
className Sets or returns the class attribute of an element
设置或返回元素的class属性
5 1 9 Yes
title Sets or returns an element's advisory title
设置或返回元素的咨询标题
5 1 9 Yes

评论 (1) 1 All

登陆 | 还没注册?