Bootstrap 4 引导4添加bg映像

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; }

当尝试添加背景图像时,它不会显示。我的完整自定义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;
}

@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)

如果没有,请检查您的路径