首页 > 解决方案 > 如何为 HTA(Html 应用程序)选择 Internet Explorer 的版本?

问题描述

我默认创建 HTA(HTML 应用程序),它使用 Internet Explorer 9.0,但我需要 Internet Explorer 7.0。我试着写:

<meta http-equiv="x-ua-compatible" content="IE=7">

但它不起作用!

标签: htmlhta

解决方案


尝试:

<meta http-equiv="x-ua-compatible" content="IE=7">

或其他版本:

<meta http-equiv="x-ua-compatible" content="IE=8">

或者

<meta http-equiv="x-ua-compatible" content="IE=9">

或者

<meta http-equiv="x-ua-compatible" content="IE=10">

或者

<meta http-equiv="x-ua-compatible" content="IE=edge"> 

推荐阅读