Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メインページを除くすべてのページにトップレベルのナビゲーションを表示するにはどうすればよいですか?内のナビゲーションを定義していLayout.cshtmlます。
Layout.cshtml
私はそれを隠すためにjavascriptを使用します。<div id="nav">ページがレンダリングされると、そのすべての html が継承された html とマージされるため、単純な jQuery 関数でナビゲーションをラップして非表示にできるはずです。
<div id="nav">
$('#nav').hide;