background-position-y版本:IE4+专有属性 继承性:无
语法:
background-position-y : length | top | center | bottom
取值:
length :百分数 | 由浮点数字和单位标识符组成的长度值。请参阅 长度单位
top :居顶
center :居中
bottom :居底
说明:
设置或检索对象的背景图像纵坐标位置。必须先指定 background-image 属性。
该属性定位不受对象的补丁属性( padding )设置影响。
默认值为: 0%
此属性对于 currentStyle 对象而言是只读的。对于其他对象而言是可读写的。
对应的脚本特性为 backgroundPositionY
示例:
div { background-image: url("images/aardvark.gif"); background-position-y: 35%; background-repeat:no-repeat; }