【问题标题】:iframe innerHTML visible in browser, however is null in codeiframe innerHTML 在浏览器中可见,但在代码中为 null
【发布时间】:2015-04-10 11:37:12
【问题描述】:

我正在尝试使用 mshtml 访问网站上的 iframe。

  • 我可以在浏览器的网站框架中看到innerHTML。
  • 我还可以通过代码访问 iframe 中的“DIV”。
  • 文档也已正确加载。
  • iframe 也属于同一个域。

但是,当我在代码中查找它时,它显示为 null。

谁能帮忙?

我尝试了This,但没有任何收获。

【问题讨论】:

    标签: c# html iframe internet-explorer-8 mshtml


    【解决方案1】:

    请尝试

    作为doc.document.getelementbyid

    因为 IE 11 改变了一些访问属性。

    readystate is no longer supported by IE 11

    【讨论】:

      猜你喜欢
      • 2021-04-09
      • 1970-01-01
      • 1970-01-01
      • 2023-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-16
      相关资源
      最近更新 更多