如何将我的徽标放在导航栏上方?

时间:2018-01-18 04:54:11

标签: html css twitter-bootstrap

我在导航栏上有徽标,但我希望它在导航栏上方,以便它保持在左上角。有人可以帮忙吗?

<div class="navbar navbar-inverse navbar-fixed-top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                <a class="navbar-brand" href="#">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/LOGO HERE" Width="100" Height="100"/>
                </a>    
                  </div>

这就是我所拥有的。

1 个答案:

答案 0 :(得分:-1)

试试这个

<div>
    <a class="navbar-brand" href="#">
        <asp:Image ID="Image1" runat="server" ImageUrl="~/LOGO HERE" Width="100" Height="100" />
    </a>
</div>

<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

        </div>
    </div>
</div>