有没有办法将谷歌地图嵌入到 HTML 电子邮件中? [英] Is there no way to embed a Google Map into an HTML email?

查看:58
本文介绍了有没有办法将谷歌地图嵌入到 HTML 电子邮件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了大量研究找到了几个解决方案",例如静态地图 API 并简单地发送一个指向 Gmap 的链接.然而,真的没有办法真正向某人发送谷歌地图吗?

I have done a good amount of research and have found several "solutions" such as the static maps API and simply sending a link to a Gmap. However is there really no way to actually send someone a Google Map?

推荐答案

您自己的研究表明,大多数邮件客户端不使用 iFrame,那么您认为可以做什么?

Well your own research shows that most mail clients don't do iFrames, so what do you think can be done?

顺便说一下,这是故意的.iFrame 和 JavaScript 是邮件服务不想处理的安全风险.

This is on purpose by the way. iFrames and JavaScript are security risks that mail services don't want to deal with.

最好的办法是获取地图的静态图像并嵌入作为 HTML 电子邮件中的图像.在其上放置一个指向 Google 地图上完整"地图的超链接.

Your best bet is to get a static image of the map and embed it as an image in an HTML email. Put a hyperlink on it to the "full" map on Google Maps.

要在 Gmail 中手动执行此操作:

To do this manually in Gmail:

  1. 转到http://staticmapmaker.com/google/ 或类似网站
  2. 输入位置
  3. 将地图图像复制到剪贴板并将其粘贴到电子邮件中
  4. 复制Map with link to Google Maps"部分中锚点的href
  5. 选择整个图像(将光标放在图像的右侧,然后按shift + 向左箭头
  6. ctrl+k超链接图像
  7. 将第 4 步中的网址粘贴到网址"字段中
  1. Go to http://staticmapmaker.com/google/ or similar
  2. Enter the location
  3. Copy the map image to your clipboard and paste it into an email
  4. Copy the href of the anchor in the section "Map with link to Google Maps"
  5. Select the whole image (put the cursor to the right of the image, and press shift + left arrow
  6. Press ctrl+k to hyperlink the image
  7. Paste the url from step 4 into the Web Address field

这篇关于有没有办法将谷歌地图嵌入到 HTML 电子邮件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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