Css Bootstrap jumbotron背景图像赢得';Heroku上的t显示

Css Bootstrap jumbotron背景图像赢得';Heroku上的t显示,css,twitter-bootstrap-3,Css,Twitter Bootstrap 3,我的jumbotron背景图像在本地工作得非常好,在Bootstrap 2作为英雄单位时效果非常好。现在,当我部署到Heroku时,我得到一个空白的jumbotron。以下是我的CSS: .jumbotron { height: 400px; width: auto; padding-top: 10px; padding-left: 15px; background-image: url(ttable.jpg); background-repeat: no-repeat; color: blac

我的jumbotron背景图像在本地工作得非常好,在Bootstrap 2作为英雄单位时效果非常好。现在,当我部署到Heroku时,我得到一个空白的jumbotron。以下是我的CSS:

.jumbotron {
height: 400px;
width: auto;
padding-top: 10px;
padding-left: 15px;
background-image: url(ttable.jpg);
background-repeat: no-repeat;
color: black;  
}

切换到Bootstrap 3时有什么变化吗?

我在谷歌搜索时找到了一个修复方法。这是我找到它的地方:

将production.rb文件中的config.assets.compile更改为true,如下所示:

# config/environments/production.rb
YOURAPPLICATION::Application.configure do

   # your config settings

   config.assets.compile = true

   # your other config settings
end

我在谷歌搜索时找到了一个补丁。这是我找到它的地方:

将production.rb文件中的config.assets.compile更改为true,如下所示:

# config/environments/production.rb
YOURAPPLICATION::Application.configure do

   # your config settings

   config.assets.compile = true

   # your other config settings
end

这正好帮助我解决了同样的问题。又好又简单。谢谢。这正好帮我解决了同样的问题。又好又简单。谢谢。