HTML标签不在HTA中

问题描述:

我正在使用谷歌浏览器,我尝试使用HTML为我的计算机
制作应用程序。当然我只是将文件转换为.hta并添加

I am using Google Chrome and I tryed to make an application for my computer using HTML. Of course I just convert file to .hta and add

< HTA:APPLICATION ID =GregsonTools
APPLICATIONNAME =Gregson工具
BORDER =no
CAPTION =是
SHOWINTASKBAR =是
SINGLEINSTANCE =是
SYSMENU =是
SCROLL =no
ICON =icon.ico
WINDOWSTATE =正常>

但JavaScript的应用程序无效。
比我做了一个测试并在Internet explorerer中打开我的HTML应用程序。
同样的东西在HTA文档中不起作用。

But JavaScript alpplication didn't work. Than I made a test and open my HTML application in Internet explrer. The same things weren't working as in HTA document.

可能是IE使用奇怪的HTML并且它无法读取普通HTML的某些元素。
如果有人有同样的问题并且知道解决方案,请帮忙。

Maybe is IE using weird kind of HTML and it cannot reading some elements of ordinary HTML. If anybody had same problem and know solution please help.

Chrome(或任何其他浏览器)根本不支持HTA。实际上,HTA由mshta.exe运行,IE用作渲染和放大器。脚本引擎。

Chrome (or any other browser) doesn't support HTAs at all. Actually HTAs are run by mshta.exe, and IE is used as a rendering & scripting engine.

当HTA与IE9一起运行时(< meta http-equiv =x-ua-compatiblecontent =IE = 9> < HTA:application> 存在一些问题,就像一些乱七八糟的 icon 和窗口边框。

When HTA is run with IE9 (<meta http-equiv="x-ua-compatible" content="IE=9">) there are some issues with <HTA: application>, like some mess with icon and window borders.

使用IE10(< meta http-equiv =x-ua-compatiblecontent = IE = edge> )似乎HTA属性完全被忽略,即使 singleInstance =yes也不起作用。如果您查看运行时源,可以看到< HTA:application> 标记被移动到正文,它没有预期的影响。

With IE10 (<meta http-equiv="x-ua-compatible" content="IE=edge">) it seems, that HTA properties are ignored totally, even singleInstance="yes" doesn't work. If you take a look at a runtime source, you can see the <HTA: application> tag is moved to the body, where it has not the expected influence.

以上所有关于IE的内容仅与实际的HTA属性有关,所有HTML,脚本和特权都能正常工作。 IE10比以前更好更快,你可以使用真正的JavaScript而不是JScript。

All above written about IE is related to the actual HTA properties only, all HTML, scripts and privilegs work well. With IE10 even better and faster than ever before, and you can use real JavaScript instead of JScript.

要利用所有可用的功能,你需要添加文档类型和 x-ua-compatible 到您的网页:

To utilize all available features, you need to add document type and x-ua-compatible to your pages:

<!DOCTYPE html>
<html>
   <head>
      <title></title>
      <meta http-equiv="x-ua-compatible" content="IE=edge">
                    ...