![How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/article/000/000/053/5ee98c5cf1fbc902.jpg)
#htmlHow to set the background image to be tiled in full screen?
1. Create a new html document.
![1592364327332329.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/934/456/974/1592364327332329.png)
#2. Set the HTML frame, and then set the images in the same folder.
![1592364332584856.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/370/877/525/1592364332584856.png)
![1592364336114493.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/100/570/753/1592364336114493.png)
##3. Add so that you can have style settings .
![1592364391340711.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/808/763/963/1592364391340711.png)
#4. Because the background is set on the main body, it must be defined as body{}.
![1592364396237307.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/959/816/675/1592364396237307.png)
5. background-image:url (picture), this means adding a picture.
![1592364404787933.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/176/937/163/1592364404787933.png)
![1592364410254221.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/381/262/646/1592364410254221.png)
6. Then we need to add background-repeat:repeat-x; At this time, it will be tiled horizontally.
![1592364435208716.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/326/966/487/1592364435208716.png)
![1592364443954473.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/524/347/997/1592364443954473.png)
7. background-repeat:no-repeat; This way you don’t need to repeat the tiles.
![1592364464423865.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/269/405/658/1592364464423865.png)
![1592364472809901.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/713/474/455/1592364472809901.png)
8. background-repeat:repeat-y; This command is to tile vertically.
![1592364497854213.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/128/375/158/1592364497854213.png)
![1592364503297806.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/149/624/239/1592364503297806.png)
9. background-repeat:repeat; This will cause full-screen tiles.
![1592364533407137.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/475/165/830/1592364533407137.png)
![1592364538390846.png How to set the background image to be tiled in full screen in HTML?](https://img.php.cn/upload/image/433/927/796/1592364538390846.png)
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!
Statement: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