으로 변조됩니다. Umbraco 5 MVC3 프로젝트에서 여기 저기에 공백이있는 곳을 발견했습니다. 조사 할 때 나는 파이어 폭스 웹 개발자 도구에서 "생성 된 소스보기"를 할 때 내 HTML이 정말 나빠 보이는 것을 발견했다. 예를 들어 내 Doctype 선언을 제거하고 메타 태그와 물건을 머리 밖으로 이동시킵니다. 단순화 된 코드 : 당신이 당신의 서버에 의해 생성 된 HTML을 확인하려면내 HTML 태그가
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>@ViewBag.Title</title>
<link rel="stylesheet" href="@Url.Content("~/Content/Styles/style.css")"/>
</head>
<body id="" class="default">
<div id="wrapper">
<header id="banner" class="body">
<a class="ir logo" href="/"><h1>Christian </h1></a>
<ul class="share">
<li id="facebook"><a class="ir" href="http://www.facebook.com/[email protected]">Facebook</a></li>
<li id="twitter"><a class="ir" href="http://twitter.com/share?text=Christian">Twitter</a></li>
</ul>
@Html.Partial("nav")
</header>
<section id="content" class="body">
@RenderBody()
</section>
</div>
<script src="@Url.Content("~/Scripts/plugins.js")"></script>
<script src="@Url.Content("~/Scripts/script.js")"></script>
</body>
</html>
그리고 출력이
<html class="no-js" lang="en"><head></head><body id="" class="default">
감사합니다. 이것은 이상한 문제였습니다. –