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.
Foundation 4 的顶栏切换将为中等屏幕尺寸激活,我如何将切换更改为激活小屏幕?
从基金会文档中找到了这个:
$topbar-breakpoint: emCalc(940); /* Change to 9999px for always mobile layout */ $topbar-media-query: "only screen and (min-width: #{$topbar-breakpoint})";
您需要更改 emCalc 值。
请注意,emCalc 是 SASS 函数,可将 em 自动转换为像素。所以默认情况下它设置为 940 像素。