网站不断向下滚动加载,而不是像应该的那样在页面顶部加载

Site keeps loading scrolled down instead of at the top of the page like it should

本文关键字:加载 顶部 滚动 网站      更新时间:2023-09-26

查看此链接:http://www.ffwdcam.com/beta/

出于某种原因,当我加载它时,页面总是向下滚动到"查看它的操作"部分!我不知道为什么会发生这种事!请帮忙!

页面滚动到外部iframe:

<div class="video-block">
    <iframe src="https://docs.google.com/file/d/0B5BqZnU2U   <!-- etc -->

这个iframe中的代码通过在播放器上设置tabindex="1"来获取焦点。可能它还将玩家设置为关注.focus()

假设谷歌文档上的代码超出了您的控制范围,您可能需要在加载iframe后尝试将您的top窗口向上滚动。

顺便提一下(针对同一问题的)另外两种解决方案:

  • 将iFrame放置在网页顶部
  • 使用其他web浏览器