DOM Image

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
描述
IEFOW3C
alignSets or returns how to align an image according to the surrounding text
设置或返回怎样根据周围的文字来将图片进行对齐
519Yes
altSets or returns an alternate text to be displayed, if a browser cannot show an image
当浏览器不能显示图片的时候设置或返回需要显示的交替文字
519Yes
borderSets or returns the border around an image
设置或返回图片的边框
419Yes
completeReturns whether or not the browser has finished loading the image
返回浏览器是否已经把图片加载完毕
419No
heightSets or returns the height of an image
设置或返回图片的高度
419Yes
hspaceSets or returns the white space on the left and right side of the image
设置或返回图片的左以及右的空白距离
419Yes
idSets or returns the id of the image
设置或返回图片的id
419Yes
isMapReturns whether or not an image is a server-side image map
返回图片是否为服务端热点图片
519Yes
longDescSets or returns a URL to a document containing a description of the image
设置或返回到达包含图片描述文档的URL
619Yes
lowsrcSets or returns a URL to a low-resolution version of an image
设置或返回达到一低分辨率图片的URL
419No
nameSets or returns the name of an image
设置或返回图片的name
419Yes
srcSets or returns the URL of an image
设置或返回图片的URL
419Yes
useMapSets or returns the value of the usemap attribute of an client-side image map
设置或返回客户端热点图片中usemap属性的值
519Yes
vspaceSets or returns the white space on the top and bottom of the image
设置或返回图片上以及下的空白间隙
419Yes
widthSets or returns the width of an image
设置或返回图片的宽度
419Yes

Standard Properties
标准属性

Property
属性
Description
描述
IE FOW3C
classNameSets or returns the class attribute of an element
设置或返回元素的class属性
519Yes
titleSets or returns an element's advisory title
设置或返回元素的咨询标题
519Yes
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值