导航栏mvc asp.net顶部的Bootstrap徽标图像

时间:2014-04-08 22:08:43

标签: html asp.net css asp.net-mvc

我试图将图片放在导航栏的顶部但我没有收到,请按照脚本

 <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>
            @Html.ActionLink("Application name", "Index", "Home", null, new { @class = "navbar-brand" })
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li>@Html.ActionLink("Home", "Index", "Home")</li>
                <li>@Html.ActionLink("About", "About", "Home")</li>
                <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
            </ul>
            @Html.Partial("_LoginPartial")
        </div>
    </div>
</div>

enter image description here

我尝试了一些例子而不能。

1 个答案:

答案 0 :(得分:0)

您的导航栏有 navbar-fixed-top 标签,您需要将其更改为 relative