You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WordPress页面加载时自动跳转到iframe问题求助

嵌入ADP招聘页面iframe后页面自动跳转的解决办法

我们在使用Astra主题和Elementor的WordPress招聘页面中嵌入ADP的iframe时,页面完全加载后会自动跳转到iframe内容,不确定是ADP页面代码还是本地站点设置导致的问题。

ADP招聘页面链接:
https://workforcenow.adp.com/mascsr/default/mdf/recruitment/recruitment.html?cid=85e1d0f8-8d9d-4e45-ae2f-7071a17656c8&ccId=19000101_000001&lang=en_US

当前使用的iframe代码:

<iframe src="https://workforcenow.adp.com/mascsr/default/mdf/recruitment/recruitment.html?cid=85e1d0f8-8d9d-4e45-ae2f-7071a17656c8&ccId=19000101_000001&lang=en_US" style="border:0px #ffffff none;" name="ADP" scrolling="yes" frameborder="0" marginheight="0px" marginwidth="0px" height="1200px" width="100%"  ></iframe>

已尝试的解决方案(均无效):

  • 设置scrolling="no":会移除移动端所需滚动条,无法满足需求
  • 添加隐藏样式+onload显示的代码:
    style="display: none;" onload="this.style.display='block';"
    
  • 使用绝对定位隐藏+onload恢复定位的代码:
    style="position: absolute; top: -9999em; visibility: hidden;" onload="this.style.position='static'; this.style.visibility='visible';"
    

请问是否有其他可行的解决办法,还是需要ADP端对页面代码进行修改?


内容的提问来源于stack exchange,提问作者Inventive Web Design

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 02:42:36