简体   繁体   English

Facebook scrollTo不能在iframe中使用?

[英]Facebook scrollTo not working in iframe?

I'm trying to have my iframe load up to the top of the page when the page refreshes. 当页面刷新时,我正在尝试将iframe加载到页面顶部。 Basically I have an iframe, the initial page high is 1250px but the 2nd page that it sends you to is only 500px in height. 基本上我有一个iframe,初始页面的高度为1250px,但是将其发送给您的第二页的高度仅为500px。 The problem is when your redirected to the new page you only see white space and have to scroll up. 问题是当您重定向到新页面时,您只会看到空白并且必须向上滚动。

I have tried using the following: 我尝试使用以下方法:

$("#postyourwave").click(function(){
    FB.Canvas.scrollTo(0,0);
});

but to no luck. 但没有运气。 Can anyone help me out? 谁能帮我吗?

尝试在应用程序设置中将“画布高度”设置为“固定”。

The issue is the scrolling iframe within the canvas, I have been told this is not possible. 问题是画布中的滚动iframe,有人告诉我这是不可能的。 If someone knows please fill me in! 如果有人知道,请填写我! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM