如何在 AMP HTML 中创建响应式汉堡菜单 [英] How to create a responsive hamburger menu in AMP HTML
本文介绍了如何在 AMP HTML 中创建响应式汉堡菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建一个 AMP HTML 网站(请参阅 https://www.ampproject.org)但是我在任何地方都找不到您应该如何创建响应式汉堡菜单?不允许使用 Javascript 并且没有可用的 AMP 组件?
I'm trying to create an AMP HTML website (see https://www.ampproject.org) But i can't find anywhere how you are supposed to create a responsive hamburger menu ? Javascript is not allowed and there are no AMP Components available for it ?
推荐答案
AMP 现在支持使用 amp-sidebar 组件.
AMP now has support for menu using the amp-sidebar component.
这篇关于如何在 AMP HTML 中创建响应式汉堡菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文