如何将HTML,CSS和Javascript转换为EXE? [英] How can you convert HTML, CSS, and Javascript into a EXE?

查看:58
本文介绍了如何将HTML,CSS和Javascript转换为EXE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,这个问题的所有答案令人困惑……有人可以给我详细的方法来用HTML制作EXE应用程序吗?

All of the answers to this question so far as I can see are confusing... can someone give me a detailed way to make EXE apps with HTML?

推荐答案

否.从严格意义上讲,您不能这样做.HTML的主要发明目的是设计和交换为浏览器编写的文档(而CSS为此类文档提供了布局信息).

No. In the strict sense you can't. HTML was mainly invented to design and exchange documents written for a browser (and CSS provides layout information for such a document).

尽管如此,情况已不再如此.在浏览器之外使用HTML和CSS的可能性很多(例如 Gnome Shell 是借助CSS和Javascript开发的,或者想到了现代UI 应用对于Windows 8).

Although, that is not the case anymore. There are many possibilities, where HTML and CSS is used outside of the browser (e.g Gnome Shell is developed with the help of CSS and Javascript or think of Modern UI apps for Windows 8).

因此,如果您考虑使用Windows 8,则可以在浏览器之外创建应用程序;但从技术上讲,它不是 .exe ,也不是可执行文件.

So if you consider Windows 8, there is the possibility of creating an app outside of the browser; but technically it is not an .exe It is not an executable.

另一种可能性是利用 WebBrowser类,允许您编写一个使用HTML和CSS的.exe.

Another possibility is to make use of the WebBrowser Class, which allows you to write an .exe which makes use of your HTML and CSS.

因此,有多种方法可以将HTML填充到可执行文件中,但是您不能使其本身成为可执行文件,因为它是一种文档/标记语言,而不是编程语言,并且不能转换为正在运行的代码.

So there are ways to stuff HTML into an executable, but you can not make it executable by itself, since it is a document/markup language and not a programming language and can not be converted to running code.

这篇关于如何将HTML,CSS和Javascript转换为EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆