gpt4 book ai didi

css - Zurb 基金会 : Nav Bar disappears for small range of screen sizes

转载 作者:行者123 更新时间:2023-11-28 08:41:49 26 4
gpt4 key购买 nike

我最近开始使用 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 像素),导航栏不会显示。手机/平板电脑和大桌面屏幕看起来不错,但在一些更便宜/更小的桌面屏幕上,分辨率会触发导航栏消失,而不会弹出移动菜单。

我试图通过几个不同的论坛找到解决这个问题的方法,但一无所获。关于如何强制显示桌面菜单直到分辨率小到足以触发平板电脑/移动设备的任何想法?

非常感谢!

最佳答案

您的菜单太宽,不适合该宽度范围,因此菜单实际上溢出了。

enter image description here

我的建议?为该大小范围添加一个媒体查询,您可以在其中缩小导航栏中的填充。

@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;
}
}

关于css - Zurb 基金会 : Nav Bar disappears for small range of screen sizes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27787791/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com