如何在 Github 上将 HTML 页面视为正常呈现的 HTML 页面以在浏览器中查看预览,而无需下载? [英] How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading?
问题描述
在 http://github.com 上,开发人员保留项目的 HTML、CSS、JavaScript 和图像文件.如何在浏览器中查看 HTML 输出?
On http://github.com developer keep the HTML, CSS, JavaScript and images files of the project. How can I see the HTML output in browser?
例如:https://github.com/necolas/css3-social-signin-buttons/blob/master/index.html
当我打开它时,它不会显示作者代码的呈现 HTML.它将页面显示为源代码.
When I open this it doesn't show the rendered HTML of the code of author. It shows the page as a source code.
是否可以直接将其视为呈现的 HTML?否则我总是需要下载整个 ZIP 才能看到结果.
Is it possible to see it as rendered HTML directly? Otherwise I always need to download the whole ZIP just to see the result.
推荐答案
在 GitHub 上预览 HTML 文件最舒服的方式是去 https://htmlpreview.github.io/ 或只是将其添加到原始 URL,即:https://htmlpreview.github.io/?https://github.com/bartaz/impress.js/blob/master/index.html
The most comfortable way to preview HTML files on GitHub is to go to https://htmlpreview.github.io/ or just prepend it to the original URL, i.e.: https://htmlpreview.github.io/?https://github.com/bartaz/impress.js/blob/master/index.html
这篇关于如何在 Github 上将 HTML 页面视为正常呈现的 HTML 页面以在浏览器中查看预览,而无需下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!