代码之家  ›  专栏  ›  技术社区  ›  Lee D

Word 2007文件启动新窗口而不是显示内联窗口

  •  0
  • Lee D  · 技术社区  · 14 年前

    我将这些值用于“内容类型”标题:

    docx - "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
    xlsx - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
    

    “Content Disposition”头是“inline;filename=example.docx”。

    如何强制这些文件类型在浏览器中以内联方式打开,而不是打开新窗口?

    感谢任何帮助。

    我应该提到这只需要在IE8中工作。

    1 回复  |  直到 13 年前
        1
  •  0
  •   stealthyninja michkra    14 年前

    @Lee D:即使您明确地设置了内容类型(并在您的PC上安装了Office 2007兼容包),我认为您应该将这些MIME类型添加到web服务器(位于 服务器属性 然后 )看看那是不是缺少的成分。