发布时间:2019-10-01编辑:佚名阅读(897)
说明:本文档兼容性测试基础环境为:windows系统;IE6-IE10, Firefox6.0, Chrome13.0, Safari5.1, Opera11.51
background-position:<position> [ , <position> ]*
<position> = [ left | center | right | top | bottom | <percentage> | <length> ] | [ left | center | right | <percentage> | <length> ] [ top | center | bottom | <percentage> | <length> ] | [ center | [ left | right ] [ <percentage> | <length> ]? ] && [ center | [ top | bottom ] [ <percentage> | <length> ]? ]
默认值:0% 0%,效果等同于left top
<percentage>: | 用百分比指定背景图像填充的位置。可以为负值。 |
<length>: | 用长度值指定背景图像填充的位置。可以为负值。 |
center: | 背景图像横向和纵向居中。 |
left: | 背景图像在横向上填充从左边开始。 |
right: | 背景图像在横向上填充从右边开始。 |
top: | 背景图像在纵向上填充从顶部开始。 |
bottom: | 背景图像在纵向上填充从底部开始。 |
支持版本\类型 | IE | Firefox | Safari | Chrome | Opera |
---|---|---|---|---|---|
版本 | 6.0-8.0 #1 | 4.0 | 5.1 | 13.0 | 11.50 |
版本 | 9.0 |
关键字:CSS3CSS1background-position属性
0人
0人
0人
0人