Display the background picture implementation code at the bottom of Div

Source: Internet
Author: User

div layer background picture at the bottom of the display, seemingly a lot of friends will not bar, the following for you to introduce the specific implementation of the method, interested friends can refer to the following

The following code implements the DIV layer background picture at the bottom display:

Copy Code code as follows:
div {
Background:url (/images/bg.jpg) no-repeat fixed;
Background-position-y:bottom;
}


Code Detailed:

Copy Code code as follows:
div {
Background-image:url (/images/bg.jpg); /* Set the div layer background picture * *
Background-repeat:no-repeat; * * Background picture does not repeat the display * *
Background-repeat:repeat; /* Background picture repeat horizontally and vertically * *
Background-repeat:repeat-x; /* Background picture Repeat * *
Background-repeat:repeat-y; /* Background picture repeat vertically * *
background-attachment:fixed; /* Fixed background picture * *
Background-attachment:scroll; /* Scrolling background picture * *
Background-position-x:left; /* background picture on the left side of horizontal display * *
Background-position-x:right; /* Background picture on the right side of the horizontal display * *
Background-position-y:top; /* Background picture displayed at the top of the portrait/*
Background-position-y:bottom; /* Background picture displayed at the bottom of the portrait/*
}

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.