【发布时间】:2023-08-16 14:12:01
【问题描述】:
我需要使用兼容 IE10 而不是 IE9 的东西。
我的 HTA 是为 IE9 制作的,运行良好:可见图标和最大化窗口。
通过将<meta http-equiv="x-ua-compatible" content="ie=9"/> 更改为<meta http-equiv="x-ua-compatible" content="ie=10"/>,没有图标,窗口也没有最大化。
有什么想法吗?
不工作:
<html>
<head>
<title>test</title>
<HTA:APPLICATION ID = "1"
APPLICATIONNAME="1"
BORDER="thin"
BORDERSTYLE="normal"
ICON="icon.ico"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
WINDOWSTATE="maximize">
<meta http-equiv="x-ua-compatible" content="ie=10"/>
</head>
<!---->
<body style="overflow:hidden;">
No icon and not maximized, with ie=10
</body>
</html>
工作中:但我现在需要 IE10。
<html>
<head>
<title>Test</title>
<HTA:APPLICATION ID = "1"
APPLICATIONNAME="1"
BORDER="thin"
BORDERSTYLE="normal"
ICON="icon.ico"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
WINDOWSTATE="maximize">
<meta http-equiv="x-ua-compatible" content="ie=9"/>
</head>
<!---->
<body style="overflow:hidden;">
Icon showing correctly with ie=9
</body>
</html>
【问题讨论】:
-
IE9 是支持 HTA 的最后一个版本。在 IE10 和 IE11 模式下,HTA 标签会自动移动到正文部分,并且不支持 HTA 标签中给出的所有属性。
标签: hta