Html Twitter引导标题上方的图像横幅

Html Twitter引导标题上方的图像横幅,html,css,image,twitter-bootstrap,Html,Css,Image,Twitter Bootstrap,我想在我的引导页面上方有一个横幅。我的代码在下面 HTML 作为背景比较好 .masthead{ height://height of bg; background-image:url("../images/gov-header.jpg"); background-repeat:no-repeat; } 希望这能给你一些想法。您可以根据要填充整个宽度还是仅填充容器长度来修改此选项 更新 你必须改变 <div class="navbar navbar-inverse

我想在我的引导页面上方有一个横幅。我的代码在下面

HTML


作为背景比较好

.masthead{
    height://height of bg;
    background-image:url("../images/gov-header.jpg");
    background-repeat:no-repeat;
}
希望这能给你一些想法。您可以根据要填充整个宽度还是仅填充容器长度来修改此选项

更新 你必须改变

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">



查看小提琴

将其改为背景,并将桅杆头的高度设置为图像的高度使用仍然显示在标题下而不是在标题下。朋友不会让朋友跳过腿日。
.masthead{
    height://height of bg;
    background-image:url("../images/gov-header.jpg");
    background-repeat:no-repeat;
}
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar navbar-inverse" role="navigation">