私はほぼ同じ問題を抱えていましたが、私のURLを記憶していました。あなたのIISバージョンでソースを見ると、CSSファイルなどを指しているときにURLが正しくないことがわかるはずです...
私のマスターのすべてのCSSとJSコールをヘルパー方法は、例えば:このことができます
<%= Html.RegisterCSS("site.css") %>
<%= Html.RegisterScript("jquery-1.3.2.min.js") %>
希望...
編集: ああ、うん、私はヘルパーへの "ヘルプ" 私をを作成しました。だから、私はヘルパーで次のコードを持っている。
public static string RegisterScript(this System.Web.Mvc.HtmlHelper helper, string scriptFileName)
{
string scriptRoot = VirtualPathUtility.ToAbsolute("~/Scripts");
string scriptFormat = "<script src=\"{0}/{1}\" type=\"text/javascript\"></script>\r\n";
return string.Format(scriptFormat, scriptRoot, scriptFileName);
}
public static string RegisterCSS(this System.Web.Mvc.HtmlHelper helper, string FileName)
{
//get the directory where the scripts are
string Root = VirtualPathUtility.ToAbsolute("~/Content");
string Format = "<link href=\"{0}/{1}?{2}\" rel=\"stylesheet\" type=\"text/css\" />";
return string.Format(Format, Root, FileName, DateTime.Now.ToString("hhmmss"));
}
私はIE8がIE7モードで表示されていたところに「落ち着き」があります。これは、同僚がそれを指摘するまで私に頭痛を引き起こした...私はここにIE8を持っていないが、私はそれが開発者ツールのセクションにあると思う。
あなたのスタイルシートに絶対または相対URLを使用していますか? –