我做了一个site for my son使用 Bootstrap 并添加了 custom.css。我尝试使用图像作为背景封面,但没有显示出来。我怎样才能解决这个问题? This is custom.css
body {
color: #036;
font-family: Georgia, Times, serif;
font-size: 2rem;
background: url(images/field-bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.container {
background-color: #fff;
width: 90%;
}
最佳答案
替换
background: url(images/field-bg.jpg) no-repeat center center fixed;
与
background: url(../images/field-bg.jpg) no-repeat center center fixed;
关于css - 现在显示封面图片(Bootstrap 3),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45047252/