当我运行此代码时,它不会在后台显示图像
.bgimg-1 {
background-image: url("/Images/oldcam.jpg");
background-repeat: no-repeat;
min-height: 100%;
}
答案 0 :(得分:1)
以下是代码: -
.bgimg-1 {
width: 400px;
height: 200px;
background-repeat: no-repeat;
background-image: url("https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png");
}
<div class="bgimg-1 w3-display-container w3-opacity-min" id="home">