Css 引导英雄单元上的背景图像

Css 引导英雄单元上的背景图像,css,twitter-bootstrap,background,Css,Twitter Bootstrap,Background,您能帮我在Bootstrap中为英雄单元设置背景图像吗?因为我遇到了问题,我的代码如下: .hero-unit { background-image:url(../img/banner.jpg) padding: 60px; margin-bottom: 30px; font-size: 18px; font-weight: 200; line-height: 30px; webkit-border-radius: 6px; moz

您能帮我在Bootstrap中为英雄单元设置背景图像吗?因为我遇到了问题,我的代码如下:

.hero-unit {
    background-image:url(../img/banner.jpg)
    padding: 60px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 200;
    line-height: 30px;
    webkit-border-radius: 6px;
    moz-border-radius: 6px;
    border-radius: 6px;
}
试试这个

.hero-unit {
   background: url('../img/banner.jpg');
}