收藏本页 | 网站地图 | 投稿指南
 
 
当前位置:首页 >> 学院首页 >> 网页设计 >> CSS >>

CSS背景:background-position-y

放大字体  缩小字体  At: 2005-10-04 02:20  By: master8 转载 来源: 互联网
语法:
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; }
 






         









 
Google
论坛精华  
 
 
  ©2005-2008 站长吧 Master8.NET All Rights Reserved 陕ICP备05010609号