因此,我有一个具有表单的外部页面,当它正确提交时,iFrame的大小会正确调整,但父页面不会滚动到顶部。我已经尝试过此代码:
iFrameResize({
// log : true, // Enable console logging
enablePublicMethods : true, // Enable methods within iframe hosted page
heightCalculationMethod : 'lowestElement',
if ('parentIFrame' in window) {
scrollTo(0,0);
}
});
但不起作用。有任何想法吗?谢谢。