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/*
}