Bootstrap 4 引导4添加bg映像
当尝试添加背景图像时,它不会显示。我的完整自定义CSS是:Bootstrap 4 引导4添加bg映像,bootstrap-4,Bootstrap 4,当尝试添加背景图像时,它不会显示。我的完整自定义CSS是: body { padding-top: 54px; background: url(img/background.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
body {
padding-top: 54px;
background: url(img/background.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@media (min-width: 992px) {
body {
padding-top: 56px;
}
}
.portfolio-item {
margin-bottom: 30px;
}
.pagination {
margin-bottom: 30px;
}
有什么建议吗?从
background: url(img/background.jpg)
到
如果没有,请检查您的路径从
background: url(img/background.jpg)
到
如果没有,请检查您的路径