【问题标题】:How to customize the Bootstrap navigation bar?如何自定义 Bootstrap 导航栏?
【发布时间】:2018-04-17 21:56:08
【问题描述】:

我正在尝试更改导航栏,使其从左到右而不是上下打开。

我希望菜单打开时导航栏向右移动。

如何做到这一点?

【问题讨论】:

    标签: css twitter-bootstrap drupal-8


    【解决方案1】:

    在您的 css 文件中修改您的#navbar-collapse id,如下所示:我将您的菜单移动到右侧添加“right:0”,因为定位为“固定”并移动左侧的边框。

    #navbar-collapse {
    position: fixed;
    top: 0px;
    right: 0px;
    float: left;
    z-index: 1031;
    width: 220px;
    height: 100% !important;
    border-left: 1px solid #000000;
    border-top: 0px;
    background: #ffffff;}
    

    【讨论】:

    • 谢谢,但这不是我的问题。我想把导航保持在左边,在打开的时候把打开mune的按钮移到右边。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-11-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多