Home > Web Front-end > Front-end Q&A > How to set the background image to be tiled in full screen in HTML?

How to set the background image to be tiled in full screen in HTML?

烟雨青岚
Release: 2020-06-17 11:48:43
Original
23600 people have browsed it

How to set the background image to be tiled in full screen in HTML?

#htmlHow to set the background image to be tiled in full screen?

1. Create a new html document.

How to set the background image to be tiled in full screen in HTML?

#2. Set the HTML frame, and then set the images in the same folder.

How to set the background image to be tiled in full screen in HTML?

How to set the background image to be tiled in full screen in HTML?

##3. Add so that you can have style settings .

How to set the background image to be tiled in full screen in HTML?

#4. Because the background is set on the main body, it must be defined as body{}.

How to set the background image to be tiled in full screen in HTML?

5. background-image:url (picture), this means adding a picture.

How to set the background image to be tiled in full screen in HTML?

How to set the background image to be tiled in full screen in HTML?

6. Then we need to add background-repeat:repeat-x; At this time, it will be tiled horizontally.

How to set the background image to be tiled in full screen in HTML?

How to set the background image to be tiled in full screen in HTML?

7. background-repeat:no-repeat; This way you don’t need to repeat the tiles.

How to set the background image to be tiled in full screen in HTML?

How to set the background image to be tiled in full screen in HTML?

8. background-repeat:repeat-y; This command is to tile vertically.

How to set the background image to be tiled in full screen in HTML?

How to set the background image to be tiled in full screen in HTML?

9. background-repeat:repeat; This will cause full-screen tiles.

How to set the background image to be tiled in full screen in HTML?

How to set the background image to be tiled in full screen in HTML?

Recommended tutorial: "

HTML Tutorial"

The above is the detailed content of How to set the background image to be tiled in full screen in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template