css - 现在显示封面图片(Bootstrap 3)

标签 css twitter-bootstrap

我做了一个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/

相关文章:

javascript - 如何使我的网页页脚处于 100% 高度?

javascript - 我如何设置 ChartJS 的样式使其始终位于 div 的底部?

css - Explorer 8,9 标题处的空行

php - 如何使用 Laravel、Bootstrap Modal 和 Ajax 将数据发布和插入数据库

asp.net-mvc - Bootstrap 日期时间选择器未显示在 mvc 中

css - (真的)长背景图像不会在 iPad Safari 上呈现

javascript - 通过数字动画化 CSS 属性

html - 使用 Bootstrap 时浏览器之间的 CSS 问题

html - CSS 溢出 :hidden causing extra bottom margin

html - 转到移动设备时,Bootstrap 横幅不会调整大小