Zurb Foundation:导航栏在小范围屏幕尺寸下消失
Zurb Foundation: Nav Bar disappears for small range of screen sizes
我最近开始使用 Foundation 并了解了大部分内容。 Here is the site I'm having trouble with.
HTML 代码
<nav class="tab-bar show-for-medium-down">
<section class="left-small">
<a class="left-off-canvas-toggle menu-icon" href="#off-canvas-navigation"><span></span></a>
<section>
</nav>
<aside class="left-off-canvas-menu">
<ul class="off-canvas-list">
<li class="navFont"><a href="index.html">MUSICIAN'S GENERAL STORE</a></li>
<ul>
<li><a href="accessories.html">Accessories</a></li>
<li><a href="http://www.nemc.com/musicians-general-store-inc/brass-instruments/">Instrument Rental</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="press.html">Press</a></li>
<li><a href="http://www.musiciansgeneralstore.tumblr.com">Blog</a></li>
<li><a href="events.html">Events</a></li>
</ul>
<li class="navFont"><a href="metropolis.html">METROPOLIS PRODUCTIONS</a></li>
<ul>
<li><a href="metband.html">Metropolis Entertainment Band</a></li>
<li><a href="production.html">Live Audio + Production</a></li>
<li><a href="referrals.html">Stage + Backline Rental</a></li>
</ul>
<li class="navFont"><a href="rockscool.html">ROCK'SCOOL</a>
<ul>
<li><a href="about.html">About Us</a></li>
<li><a href="locations.html">Locations</a></li>
<li><a href="instruments_rates.html">Instruments & Rates</a></li>
<li><a href="registration.html">Registration</a></li>
<li><a href="teachers.html">Teachers</a></li>
</li>
</ul>
</li>
<li class="navFont"><a href="#" data-reveal-id="modalContact" data-animation="fade">CONTACT</a></li>
</ul>
</aside>
<a class="exit-off-canvas"></a>
<!-- Desktop Navigation-->
<div class="fixed hide-for-medium-down">
<nav class="top-bar" data-topbar>
<ul class="title-area padding-logo">
<li class="name"><a href="#"><img class="padding-top-20" src="img/thumblogos/mgs.png" width="75px"></a></li>
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
</ul>
<section class="top-bar-section">
<ul>
<li class="navFont active"><a href="index.html">MUSICIAN'S GENERAL STORE</a></li>
<li class="navFont"><a href="metropolis.html">METROPOLIS PRODUCTIONS</a></li>
<li class="navFont"><a href="rockscool.html">ROCK'SCOOL</a></li>
<li class="navFont"><a href="#" data-reveal-id="modalContact" data-animation="fade">CONTACT</a></li>
</ul>
<ul class="social">
<li><a href="https://www.facebook.com/musiciansgeneralstore"><i class="fa fa-facebook"></i></a></li>
<li><a href="http://www.musiciansgeneralstore.tumblr.com"><i class="fa fa-tumblr"></i></a></li>
<li><a href="mailto:info@musiciansgeneralstore.com"><i class="fa fa-envelope"></i></a></li>
</ul>
</section>
</nav>
</div><!--/fixed class-->
<!-- CONTENT START -->
遗憾的是,对于某些屏幕尺寸(宽度为 1025 - 1345 像素),导航栏不显示。 Mobile/tablet 和大桌面屏幕看起来很棒,但在某些 cheaper/smaller 桌面屏幕上,分辨率会触发导航栏消失,而移动菜单不会弹出。
我试图通过几个不同的论坛找到解决方案,但一无所获。关于如何强制显示桌面菜单直到分辨率小到足以触发的任何想法 tablet/mobile?
非常感谢!
您的菜单太宽,不适合该宽度范围,因此菜单实际上溢出了。
我的建议?为该大小范围添加一个媒体查询,您在导航栏中稍微缩小填充。
@media only screen and (max-width: 1350px){
.top-bar-section li:not(.has-form) a:not(.button), .top-bar-section li.active:not(.has-form) a:not(.button){
padding: 0 10px;
font-size: 1rem;
}
}
我最近开始使用 Foundation 并了解了大部分内容。 Here is the site I'm having trouble with.
HTML 代码
<nav class="tab-bar show-for-medium-down">
<section class="left-small">
<a class="left-off-canvas-toggle menu-icon" href="#off-canvas-navigation"><span></span></a>
<section>
</nav>
<aside class="left-off-canvas-menu">
<ul class="off-canvas-list">
<li class="navFont"><a href="index.html">MUSICIAN'S GENERAL STORE</a></li>
<ul>
<li><a href="accessories.html">Accessories</a></li>
<li><a href="http://www.nemc.com/musicians-general-store-inc/brass-instruments/">Instrument Rental</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="press.html">Press</a></li>
<li><a href="http://www.musiciansgeneralstore.tumblr.com">Blog</a></li>
<li><a href="events.html">Events</a></li>
</ul>
<li class="navFont"><a href="metropolis.html">METROPOLIS PRODUCTIONS</a></li>
<ul>
<li><a href="metband.html">Metropolis Entertainment Band</a></li>
<li><a href="production.html">Live Audio + Production</a></li>
<li><a href="referrals.html">Stage + Backline Rental</a></li>
</ul>
<li class="navFont"><a href="rockscool.html">ROCK'SCOOL</a>
<ul>
<li><a href="about.html">About Us</a></li>
<li><a href="locations.html">Locations</a></li>
<li><a href="instruments_rates.html">Instruments & Rates</a></li>
<li><a href="registration.html">Registration</a></li>
<li><a href="teachers.html">Teachers</a></li>
</li>
</ul>
</li>
<li class="navFont"><a href="#" data-reveal-id="modalContact" data-animation="fade">CONTACT</a></li>
</ul>
</aside>
<a class="exit-off-canvas"></a>
<!-- Desktop Navigation-->
<div class="fixed hide-for-medium-down">
<nav class="top-bar" data-topbar>
<ul class="title-area padding-logo">
<li class="name"><a href="#"><img class="padding-top-20" src="img/thumblogos/mgs.png" width="75px"></a></li>
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
</ul>
<section class="top-bar-section">
<ul>
<li class="navFont active"><a href="index.html">MUSICIAN'S GENERAL STORE</a></li>
<li class="navFont"><a href="metropolis.html">METROPOLIS PRODUCTIONS</a></li>
<li class="navFont"><a href="rockscool.html">ROCK'SCOOL</a></li>
<li class="navFont"><a href="#" data-reveal-id="modalContact" data-animation="fade">CONTACT</a></li>
</ul>
<ul class="social">
<li><a href="https://www.facebook.com/musiciansgeneralstore"><i class="fa fa-facebook"></i></a></li>
<li><a href="http://www.musiciansgeneralstore.tumblr.com"><i class="fa fa-tumblr"></i></a></li>
<li><a href="mailto:info@musiciansgeneralstore.com"><i class="fa fa-envelope"></i></a></li>
</ul>
</section>
</nav>
</div><!--/fixed class-->
<!-- CONTENT START -->
遗憾的是,对于某些屏幕尺寸(宽度为 1025 - 1345 像素),导航栏不显示。 Mobile/tablet 和大桌面屏幕看起来很棒,但在某些 cheaper/smaller 桌面屏幕上,分辨率会触发导航栏消失,而移动菜单不会弹出。
我试图通过几个不同的论坛找到解决方案,但一无所获。关于如何强制显示桌面菜单直到分辨率小到足以触发的任何想法 tablet/mobile?
非常感谢!
您的菜单太宽,不适合该宽度范围,因此菜单实际上溢出了。
我的建议?为该大小范围添加一个媒体查询,您在导航栏中稍微缩小填充。
@media only screen and (max-width: 1350px){
.top-bar-section li:not(.has-form) a:not(.button), .top-bar-section li.active:not(.has-form) a:not(.button){
padding: 0 10px;
font-size: 1rem;
}
}