Css3background-size Background Image Size properties

Source: Internet
Author: User

background-sizeYou can set the size of the background picture, and the value includes length and percent percentage. background-originIt 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.