Home >Web Front-end >HTML Tutorial >How to make the background image adapt to the size of the table in css_html/css_WEB-ITnose
As mentioned, I tried the following code
.background {
background-image: url(../images/man/NULL-1.jpg);
background-repeat: repeat;
background-position: 100% 100%;
}
Not done
background-image: url(../images/man/NULL-1.jpg); Set the background to the image
background-repeat: repeat; Whether the background image is repeated
background-position: 100% 100 %; Background image positioning
Of course you cannot achieve the effect you want if you write it this way
If what you want is to tile the background from the lower right corner, there is no problem if you write it this way.
It seems that the size of the background image can only be defined in CSS3. It could not be defined in the previous CSS specifications
css3 can do this background-size:100%
However, lower version browsers do not support it. Such as ie6, 7, 8
It seems that it can’t be done, haha