我的站点是http://868rcacs.ca/index.php,我的下拉菜单只能在移动环境下运行,当您按下菜单按钮时,它会适当地下降,但是我想让屏幕向下滚动,就像单击一个类似的href="#namehere"会滚动到name="namehere"一样。
当我试着去做的时候,它有可能实现吗?如果是的话,你会怎么做?
发布于 2013-08-28 22:19:45
据我所知,您想让窗口向下滚动以查看整个菜单吗?首先,您可以使徽标变得更小,但使用js可以轻松地做到这一点:
window.scrollTo($anchor.left,$anchor.top)或者jquery:
$('body').animate({$anchor: $anchor.top })编辑:这里也解释了一些更多的代码。http://css-plus.com/2010/11/create-a-scrolling-anchor-link-with-jquery/
https://stackoverflow.com/questions/18498827
复制相似问题