windows - 将 html5 应用程序作为 windows 可执行文件运行

标签 windows winforms html webkit

我在整个网络上都搜索过类似的问题,我发现了很多类似的问题和文章,但没有人回答这个问题。我有一个大型 HTML 5 应用程序,我想将其作为全屏 native 应用程序在 Windows 上作为可执行文件运行。我可以想象你可以稍后在 c++ 中通过 webkit 来完成它,但我不知道 c++,不幸的是没有时间彻底学习它。

谁能建议让我的 html5 应用程序作为全屏 Windows 应用程序运行的最佳方法?

最佳答案

将文件扩展名重命名为.hta

这将使它成为 HTML Application

把这个放在你的脑海里。

<hta:application
   showintaskbar = "no"
   caption = "no"
   border = "thick"
   contextmenu = "no"
   icon = "path_to_icon.ico"
   innerborder = "no"
   scroll = "no"
   singleinstance = "yes" 
   resizable = "no"
   windowState = "maximize"
>

关于windows - 将 html5 应用程序作为 windows 可执行文件运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12553155/

相关文章:

windows - 为什么我在 Windows 上看不到服务的内存/CPU 使用情况?

c# - 有没有办法在 WinForm 表中有交替的行颜色

c# - 数字猜谜游戏 C# 的问题

html - CSS Flexbox - 正确对齐单元格列

javascript - 移动 View jquery 上的 Bootstrap 3 侧边栏导航器

windows - 虚拟发送数据到com口

c - 我在 Windows 上用 C 语言做了高分辨率计时?这样对吗?

mysql - Windows .bat 文件 0< 不确定 0 来自何处

WinForms WebBrowser 控件检测重定向

javascript - 模式不会用转义键关闭