【发布时间】:2018-07-02 08:06:45
【问题描述】:
从 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&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>
我想将其嵌入到 github 上的 README.md 页面中,例如
四处搜索,最接近在 markdown 中嵌入 iframes 的是 gitlab 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&layer=mapnik" style="border: 1px solid black"></iframe>
</figure>
我是否遗漏了某些东西,或者这是否更好地留给了真正的 HTML,并且超出了 markdown 可以/应该做的事情?
【问题讨论】:
标签: iframe openstreetmap github-flavored-markdown