我有一个下拉菜单在我的页面底部。当用户单击它时,我希望页面自动向下滚动到菜单内容的底部。现在,当菜单打开时,用户必须手动向下滚动页面。我试图使用锚,最初,但这打破了下拉功能,所以我想保持它作为一个按钮。
我在我的plnkr中包含了一个测试锚,它按预期工作。我也不明白为什么下拉内容出现在测试div
之后。
我有一个下拉菜单在我的页面底部。当用户单击它时,我希望页面自动向下滚动到菜单内容的底部。现在,当菜单打开时,用户必须手动向下滚动页面。我试图使用锚,最初,但这打破了下拉功能,所以我想保持它作为一个按钮。
我在我的plnkr中包含了一个测试锚,它按预期工作。我也不明白为什么下拉内容出现在测试div
之后。