相关疑难解决方法(0)

我可以直接从GitHub运行HTML文件,而不仅仅是查看它们的来源吗?

如果我.html在GitHub存储库中有一个文件,例如用于运行一组JavaScript测试,我有什么方法可以直接查看该页面 - 从而运行测试?

例如,我可以以某种方式实际看到由jQuery测试套件生成的测试结果,而无需将repo下载或克隆到我的本地驱动器并在那里运行它们吗?

我知道这基本上会把GitHub放在静态内容托管业务中,但话又说回来,他们只需要将他们的mime类型text/plain改为text/html.

html javascript github

294
推荐指数
5
解决办法
13万
查看次数

在 github markdown 中嵌入 openstreetmap iframe

从 openstreetmap 页面上的共享选项卡,我可以将地图视图导出为 HTML,例如:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=6.047544479370118%2C46.23053702499607%2C6.061706542968751%2C46.23821801159735&amp;layer=mapnik" style="border: 1px solid black"></iframe>
<br/><small><a href="https://www.openstreetmap.org/#map=17/46.23438/6.05463">View Larger Map</a></small>
Run Code Online (Sandbox Code Playgroud)

我想将它嵌入到 github 上的 README.md 页面中,例如

环顾四周,最接近iframe在 markdown 中嵌入s 的是git lab guide。随后我尝试了<figure class="video_container">标签,但在 gitlab 或 github 上都看不到它。

# how to find us?

we will be here:
<figure class="video_container">
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=6.047544479370118%2C46.23053702499607%2C6.061706542968751%2C46.23821801159735&amp;layer=mapnik" style="border: 1px solid black"></iframe>
</figure>
Run Code Online (Sandbox Code Playgroud)

我是否遗漏了一些东西,或者这更好地留给真正的 HTML 而不是降价可以/应该做什么?

iframe openstreetmap github-flavored-markdown

22
推荐指数
1
解决办法
1万
查看次数