background-size:背景图的尺寸大小
参数:
cover覆盖,超过元素大小裁切
contain包含,等比拉伸
background-origin:背景图的填充位置
参数:
padding-box(默认),border-box,content-box
background-clip:背景图的裁切方式
参数:padding-box,border-box(默认),content-box
Written by
in
background-size:背景图的尺寸大小
参数:
cover覆盖,超过元素大小裁切
contain包含,等比拉伸
background-origin:背景图的填充位置
参数:
padding-box(默认),border-box,content-box
background-clip:背景图的裁切方式
参数:padding-box,border-box(默认),content-box
Leave a Reply