iframe - 从框架滚动到顶部
问题描述
在 iframe 中打开页面时,我需要将主浏览器窗口滚动到顶部。我试试
$(document).ready(function() {
$("body,html", window.parent).animate({scrollTop:0}, 'slow');
});
但它不起作用。有什么错误?
解决方案
推荐阅读
- paramiko - KeyboardInterrupt 处理非常慢。问题出在哪里?
- javascript - ajax 没有动态生成内容
- linux - Shell 脚本中的嵌套 Case 语句 | 获取语法错误
- time - 在一定时间后停止执行任务的简单方法(Xamarin.Android)
- solace - 使用 JBoss JNDI 缓解 JCA
- proxy - 如何在 docker-compose 中使用本地代理设置
- python - python 3.5 中的 dict.popitem()
- python - 左加入 NA
- docker - 我们如何称呼 Docker?这不是管理程序,对吧?但是,什么是合适的词呢?
- php - 如何使用提交按钮打开 file.html 并使用 fwrite?