background-size
You can set the size of the background picture, and the value includes length and percent percentage. background-origin
It also sets the extent of its image coverage based on the background Origin location. So let's take a look at this background-size property.
/* A value: This value specifies the width of the picture, then the second value is auto */background-size:autobackground-size:50%background-size:3embackground-size:12px/* Two values: The first value specifies the width of the picture, and the second value specifies the height of the picture */background-size:50% Autobackground-size:3em 25%background-size:auto 6pxbackground-size:auto auto/* multiple backgrounds, please separate them with commas, and in CSS syntax the syntax followed by * or # can be infinitely repeated, but must be separated by commas. */background-size:auto, Auto /* Do not confuse with Background-size:auto auto */background-size:50%, 25%, 25%background-size: 6PX, auto, contain
Css3background-size Background Image Size properties