📜  如何用背景图片覆盖整个 div - CSS 代码示例

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

代码示例1
.divname{
    background-image: url(""); 
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%; 
    height: 100%; 
    
}