无法在asp.net mvc应用程序中删除html5网页上的黑白补丁

无法在asp.net mvc应用程序中删除html5网页上的黑白补丁,asp.net,css,asp.net-mvc,html,Asp.net,Css,Asp.net Mvc,Html,我正在开发一个Asp.NETMVC4应用程序,由于某些原因,网页顶部有一个白色补丁,它位于布局页面上,因此在应用程序的所有页面上都可以看到 情况如下 正如你可以从上面的图片看到的,我有一个以aliceblue为背景色的容器,我使用下面的CSS确保容器分布在整个页面上 .container { margin-right: 10px; margin-left: 10px; *zoom: 1; border: none; background-color: a

我正在开发一个Asp.NETMVC4应用程序,由于某些原因,网页顶部有一个白色补丁,它位于布局页面上,因此在应用程序的所有页面上都可以看到

情况如下

正如你可以从上面的图片看到的,我有一个以aliceblue为背景色的容器,我使用下面的CSS确保容器分布在整个页面上

.container {
    margin-right: 10px;
    margin-left: 10px;
    *zoom: 1;
    border: none;
    background-color: aliceblue;
    height: 100%;
    width:100%;
}
HTML

<body>
    <header>
        <div class="content-wrapper" >
            <div class="float-left">

                <p class="site-title">
                    <a href="~/">
                        <img src= '@Url.Content("~/Images/logo.png")' /></a>
                </p>


            </div>
            <div class="float-right">
                <nav>
                    <ul  class="nav">
                        @if (Request.IsAuthenticated)
                        {


                            @*<li><span id="currTime"></span></li>*@

                            <li>@Html.ActionLink(@Html.Encode(User.Identity.Name) + "(Admin Only)", "Index", "Admin")

                                <ul>
                                    <li>@Html.ActionLink("Internal", "Index", "Admin")
                                    <li>@Html.ActionLink("Manage", "Index", "System_User")</li>
                                    <li>@Html.ActionLink("Products", "Products", "Home")</li>
                                </ul>
                            </li>
                            <li>@Html.ActionLink("Sign Out", "Logout", "User")</li>


                        }
                        else
                        {                                             
                            <li>@Html.ActionLink("Sign In", "Login", "User")</li>

                        }
                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <div class="container" style="clear:both;">

        @RenderBody()

    </div>

    @如果(请求已验证) { @*
  • *@
  • @ActionLink(@Html.Encode(User.Identity.Name)+“(仅限管理员)”、“索引”、“管理员”)
    • @ActionLink(“内部”、“索引”、“管理”)
    • @ActionLink(“管理”、“索引”、“系统用户”)
    • @ActionLink(“产品”、“产品”、“家庭”)
  • @ActionLink(“注销”、“注销”、“用户”)
  • } 其他的 {
  • @ActionLink(“登录”、“登录”、“用户”)
  • }
@RenderBody()

我可以知道我哪里出错了吗?

看来你忘了
清除
浮动
divs
!请共享呈现的HTML。容器前有一些元素吗?是的,还有一些div,如content wrapper、float right和float left,并使其背景色与容器相同,我已将HTML添加到问题中。请检查
content wrapper
是否具有相同的背景色?是,它有相同的背景颜色