我正在尝试设计一个单页滚动网站。网站有一个导航栏,当用户滚动它时,它的位置变得固定。问题是,当页面使用导航链接向下滚动到幻灯片时,在动画结束后,它会跳回到顶部,使幻灯片的margin-top为0。(不是整个网页)。这只发生在firefox和IE中,它在webkit浏览器上完美地工作。请帮我解决这个问题我的代码如下:
我正在尝试设计一个单页滚动网站。网站有一个导航栏,当用户滚动它时,它的位置变得固定。问题是,当页面使用导航链接向下滚动到幻灯片时,在动画结束后,它会跳回到顶部,使幻灯片的margin-top为0。(不是整个网页)。这只发生在firefox和IE中,它在webkit浏览器上完美地工作。请帮我解决这个问题我的代码如下: