在小屏幕上,单页 AMP-HTML 的侧边栏菜单关闭问题
On small screen, Signle Page AMP-HTML's sidebar menu closing issue
我创建了一个单页站点,当单击菜单项时,页面滚动到页面中定义的锚点。菜单在大屏幕(桌面)上工作正常,单击页面滚动到该部分,但在小屏幕(移动)上,AMP 侧边栏菜单在点击菜单项后不会关闭,如果您按下关闭按钮,则它不会转到在菜单中选择的页面部分。
在 Github 的 this issue 找到:
amp-sidebar
pops the history when it's canceled so the navigation is canceled
这是单页锚导航的一个已知错误,但是:
This should be fixed in the next release
亲戚fix branch正在(2016-11-30)审核中
我创建了一个单页站点,当单击菜单项时,页面滚动到页面中定义的锚点。菜单在大屏幕(桌面)上工作正常,单击页面滚动到该部分,但在小屏幕(移动)上,AMP 侧边栏菜单在点击菜单项后不会关闭,如果您按下关闭按钮,则它不会转到在菜单中选择的页面部分。
在 Github 的 this issue 找到:
amp-sidebar
pops the history when it's canceled so the navigation is canceled
这是单页锚导航的一个已知错误,但是:
This should be fixed in the next release
亲戚fix branch正在(2016-11-30)审核中