background-position
为每一个背景图片设置初始位置。这个位置是相对于由 background-origin
定义的位置图层。
关键字 center
,用来居中背景图片。
关键字 top
,left
,bottom
,right
。用来指定把这个背景图放在哪一个边缘。
center
等效)。top
或 bottom
,另一个值不能再次指定 top
或 bottom
否则解析时会报错。left
或 right
,同理另一个值不能再次指定 left
或 right
。<length>
或 <percentage>
。指定相对于左边缘 x 轴或上边缘 y 轴的的坐标。
初始值 | 0% 0% |
适用元素 | all elements |
是否支持继承 | no |
是否支持动画 | no |
inherit
、initial
和 unset
。LCD tables only load in the browser