我已使用此教程http://tympanus.net/codrops/2013/07/30/google-nexus-website-menu/在我的_Layout代碼中創建邊欄。我試圖讓邊欄在RenderBody()中重疊任何東西。當側邊欄在移動設備上打開時,它會出現在圖像後面。如何使邊欄重疊圖像
圖片中描述的問題:http://snag.gy/uN9GF.jpg
我的身體的示例代碼可以在這裏找到 http://codepen.io/anon/pen/NxLvEQ
_Layout.cshtml代碼
<div class="container">
<ul id="gn-menu" class="gn-menu-main">
<li class="gn-trigger">
<a class="gn-icon gn-icon-menu"><span>Menu</span></a>
<nav class="gn-menu-wrapper">
<div class="gn-scroller">
<ul class="gn-menu">
<li class="gn-search-item">
<input placeholder="Search" type="search" class="gn-search">
<a class="gn-icon gn-icon-search"><span>Search</span></a>
</li>
<li>
<a class="gn-icon gn-icon-download">Popular</a>
</li>
<li><a class="gn-icon gn-icon-cog">Settings</a></li>
<li><a class="gn-icon gn-icon-help">About us</a></li>
</ul>
</div><!-- /gn-scroller -->
</nav>
</li>
<li><a href="http://tympanus.net/codrops">Test Sidebar</a></li>
<li></li>
</ul>
@RenderBody()
</div><!-- /container -->
<script src="../../Scripts/classie.js"></script>
<script src="../../Scripts/gnmenu.js"></script>
<script>
new gnMenu(document.getElementById('gn-menu'));
</script>
感謝您花時間回覆。非常感謝。解決了我的問題。乾杯。 – Master