Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 在引导3导航栏上方放置横幅?_Css_Twitter Bootstrap 3_Navbar_Banner - Fatal编程技术网

Css 在引导3导航栏上方放置横幅?

Css 在引导3导航栏上方放置横幅?,css,twitter-bootstrap-3,navbar,banner,Css,Twitter Bootstrap 3,Navbar,Banner,我有一个引导3导航栏: 我希望进行以下修改: 在固定导航栏上方添加横幅 向下滚动时隐藏横幅 我看到了下面的例子:;不擅长引导,当我拉相关代码时,它会破坏我的菜单 横幅(导航栏上方)是一张桌子,左侧有徽标,右侧有标题。 我需要有人给我指出正确的方向 删除导航中的导航条固定类。然后将标记放置在导航上方 我在这里找到了解决方案:,只需要清理我的代码: topnavbar { margin: 0; } #topnavbar.affix { position: fixed; top

我有一个引导3导航栏:

我希望进行以下修改:

  • 在固定导航栏上方添加横幅
  • 向下滚动时隐藏横幅
  • 我看到了下面的例子:;不擅长引导,当我拉相关代码时,它会破坏我的菜单

    横幅(导航栏上方)是一张桌子,左侧有徽标,右侧有标题。
    我需要有人给我指出正确的方向

    删除导航中的导航条固定类。然后将标记放置在导航上方


    我在这里找到了解决方案:,只需要清理我的代码:

    topnavbar {
        margin: 0;
    }
    #topnavbar.affix {
        position: fixed;
        top: 0;
        width: 100%;
    }
    
    #banner {
         background-color: yellow;   
    }
    

    这个没有引导,只有JQuery。