我已将 css 样式表应用到我的视图中,当我查看它时它没有呈现。这里有什么问题:
编辑:在 Firefox 17 中有效,在 IE10 中无效(与我的兼容性视图有关?不知道如何修复)
掌握:
@using System.Web.Optimization
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>User_Master</title>
@Styles.Render("~/Content/Styles.css")
</head>
<body>
<header>
<p>header</p>
</header>
<nav>
@Html.Partial("~/Views/Shared/User_Nav.cshtml")
</nav>
<section>
@RenderBody()
</section>
</body>
</html>
样式.css
header {
border-color: #0094ff;
border-bottom-right-radius:10px;
border-top:hidden;
border-left:hidden;
border-bottom:solid;
border-right:solid;
box-shadow:2px 2px;
}
家
@{
ViewBag.Title = "Home";
Layout = "~/Views/Shared/User_Master.cshtml";
}
<h2>Home</h2>