简体   繁体   English

如何使我的导航响应菜单

[英]How to make my navigation responsive menu

Hello dear StackOverflow community,你好亲爱的 StackOverflow 社区,

I've been struggling with how to learn to make the navigation responsive by using media query my intention was to make the navigation menu turn to a vertical style with the navbar.我一直在努力学习如何通过使用媒体查询来使导航响应,我的意图是使导航菜单变成带有导航栏的垂直样式。 Could you also please provide me with the particular rule that transforms the nav menu from horizontal to vertical?您能否向我提供将导航菜单从水平转换为垂直的特定规则?

Thank you in advance先感谢您

index.html索引.html

styles.css样式.css

You'll want two navs to start, a horz and vert.您将需要两个导航开始,一个 horz 和一个 vert。 Use the media queries to display one or the other.使用媒体查询来显示一个或另一个。

Once that is working, backup the code (or commit if using git), then refactor both navs into one.一旦工作正常,备份代码(如果使用 git,则提交),然后将两个导航重构为一个。

. .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM