在标记中重复主导航对可访问性不利吗?

Is it bad for accessibility to repeat the main navigation in markup?

通常在创建导航的移动版本时,最直接的设计方法是重复主导航标记并使用 display:none 隐藏一个或另一个 CSS 取决于屏幕分辨率。

这对可访问性不利吗?

这种方法没有什么本质上无法访问的地方。 使用 display:none 将向所有用户隐藏内容,并且屏幕阅读器不会大声朗读。

visibility: hidden; and/or display:none;

These styles will hide text from all users. The text is removed from the visual flow of the page and is ignored by screen readers. Do not use this CSS if you want the content to be read by a screen reader. But DO use it for content you don't want read by screen readers.

https://webaim.org/techniques/css/invisiblecontent/