一、語法:
background-position-x : length | left | center | right
background-position-y : length | left | center | right
二、取值:
length :百分數 | 由浮點數字和單位標識符組成的長度值
left :居左
center:居中
right :居右
三、兼容性:
chrome和IE支持,寫法:
background-position-x:30px;-ms-background-position-x:30px;
background-position-y:30px;-ms-background-position-y:30px;
firefox不支持這兩個屬性,如果要兼容,需要寫成:
background-position:30px 30px;