可嵌入组件
Please note that embeddable widgets are enabled for specific referals, contact us if you need access.
Using javascript
By using the javascript code, you ensure that the generated iframe will resize no matter how your contents are.
It's the recommended solution.
<blockquote class="edsm-embed" lang="zh" data-value="{param}"> <a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a> </blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
Using an iframe
Using the iframe code is srtaightforward, but you need to ensure the height is set depending on your content and the content inside the requested iframe.
<iframe class="edsm-embed-iframe" style="background: transparent;border: none;max-width: 840px;width: 100%;margin: 10px 0px; padding: 0px;" scrolling="no" src="https://www.edsm.net/zh/tools/embed?query={param}"> <a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a> </iframe>
{systemName}
<blockquote class="edsm-embed" lang="zh" data-value="Colonia"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
{systemId}
<blockquote class="edsm-embed" lang="zh" data-value="3200"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
system::{systemName}
<blockquote class="edsm-embed" lang="zh" data-value="system::Sol"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
system::{systemId}
<blockquote class="edsm-embed" lang="zh" data-value="system::4300"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
{systemName}::factions
<blockquote class="edsm-embed" lang="zh" data-value="Colonia::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
{systemId}::factions
<blockquote class="edsm-embed" lang="zh" data-value="350::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
system::{systemName}::factions
<blockquote class="edsm-embed" lang="zh" data-value="system::Achali::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
system::{systemId}::factions
<blockquote class="edsm-embed" lang="zh" data-value="system::27::factions"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
station::{systemName}::{stationName}
<blockquote class="edsm-embed" lang="zh" data-value="station::Sol::Daedalus"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
station::{stationId}
<blockquote class="edsm-embed" lang="zh" data-value="station::11000"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
body::{systemId}::{bodyId}
<blockquote class="edsm-embed" lang="zh" data-value="body::124406::543"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
body::{systemName}::{bodyName}
<blockquote class="edsm-embed" lang="zh" data-value="body::Colonia::Colonia 3 c"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
body::{bodyId}
<blockquote class="edsm-embed" lang="zh" data-value="body::3794"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
faction::{factionName}
<blockquote class="edsm-embed" lang="zh" data-value="faction::Mother Gaia"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
faction::{factionId}
<blockquote class="edsm-embed" lang="zh" data-value="faction::7500"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
expedition::{expeditionId}
<blockquote class="edsm-embed" lang="zh" data-value="expedition::38"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
expedition::{expeditionId}::timer
<blockquote class="edsm-embed" lang="zh" data-value="expedition::38::timer"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>
expedition::{expeditionId}::waypoints
<blockquote class="edsm-embed" lang="zh" data-value="expedition::38::waypoints"><a href="https://www.edsm.net/" target="_blank">EDSM - Elite Dangerous Star Map</a></blockquote> <script async src="https://www.edsm.net/js/embed.js" charset="utf-8"></script>