将 HTML 从外部文件添加到 SharePoint 上的页面查看器 Web 部件

Adding HTML from an external file to a Page Viewer Web Part on SharePoint

我正在尝试将 HTML 从外部文件添加到正在使用 'Page Viewer' Web 部件添加到 SharePoint 的 .htm 文件中。

它需要支持 IE7 - 我能想到的最好方法是使用 iFrame...但是页面查看器 Web 部件本身就是一个 iFrame;我猜嵌套的 iFrame 无法完成,因为我找不到一种方法来完成这项工作。我也厌倦了使用 'object' 标签,但这没有用,PHP 也不是一个选项:(

是否有其他方法可以实现此目的?

是的,您可以使用 Content Editor Webpart

要添加的步骤 Content Editor Webpart

  1. 编辑该页面
  2. 单击“添加 Web 部件”
  3. select Media and Content

内部内容编辑器 webpart 像这样粘贴您的内容

<iframe id="iframe1" height="900" width="800" frameborder="0" marginheight="0" marginwidth="0" src="paste your url here"></iframe>

希望这会有所帮助?