📜  如何在html代码示例中使图像成为完整背景

📅  最后修改于: 2022-03-11 14:53:06.383000             🧑  作者: Mango

代码示例1
I have set the fixed position, you can set it to whatever you want.

.bg-image {
   width: 100%;
   height: 100%;
   position: fixed;
   right: 0;
   left: 0;
   top: 0;
   bottom: 0;
 }