我在模式中有一个 iframe,但是当我打开模型时,其中的 iframe 没有显示页面的开头而是中间。
<iframe name="finance" id="finance" src="https://www.elbtools.com/secure/apply.php?elbt=1459262273170" frameborder="0" border="0" cellspacing="0" style="width:100%; height: 700px;"></iframe>
这是我的 codepen 强>。谢谢。
最佳答案
一个快速的解决方案 ( edited codepen ) 是在您的 iframe src 的末尾附加“#”。
src="https://www.elbtools.com/secure/apply.php?elbt=1459262273170#"
希望您能修改它,直到找到更好的解决方案。
关于javascript - 打开时,模态内的 Iframe 不会滚动到顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51031609/