📜  如何在css代码示例中添加背景

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

代码示例2
.bg-img{
 background-image: url("../img/bookGlowing.jpg"); /*In case the picture is in another folder and you are in css folder*/
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}