Html mailto 链接在 Chrome 浏览器中不起作用(版本:18.0.1025.152 m)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10099711/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 23:42:43  来源:igfitidea点击:

mailto link is not working in Chrome Browser (Version :18.0.1025.152 m)

htmlgoogle-chrome

提问by Kushal

mailto link is not working in Google Chrome browser (Ver:18.0.1025.152 m)

mailto 链接在 Google Chrome 浏览器中无效 (Ver:18.0.1025.152 m)

<a href="mailto:[email protected][email protected]&[email protected]&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!">Send mail!</a>

I used the above code in ff and chrome. It works fine in ff but not in chrome And you can test this linkalso. I think it is problem with chrome settings. Anyone know how to change settings?

我在 ff 和 chrome 中使用了上面的代码。它在 ff 中工作正常,但在 chrome 中无效,您也可以测试此链接。我认为这是 chrome 设置的问题。谁知道怎么改设置?

回答by Ketola

You can check which program is mapped to handle mailto: links by entering chrome://settings/handlers. It could well be that if the mailto: handler is somehow misconfigured, Chrome silently fails on mailto: links.

您可以通过输入 来检查哪个程序被映射到处理 mailto: 链接chrome://settings/handlers。很可能是如果 mailto: 处理程序以某种方式错误配置,Chrome 会在 mailto: 链接上默默地失败。

More information on handlers, including allowing websites to handle special links is available at http://support.google.com/chrome/bin/answer.py?hl=en&answer=1382847

有关处理程序的更多信息,包括允许网站处理特殊链接,请访问http://support.google.com/chrome/bin/answer.py?hl=zh-CN&answer=1382847

For what it's worth, mailto: link in the W3Schools example works without problems with Chrome 19.0.1084.41 (Official Build 134854) beta-m and Outlook 2010 under Windows 7 Professional (64-bit).

值得一提的是,W3Schools 示例中的 mailto: 链接在 Chrome 19.0.1084.41(官方版本 134854)beta-m 和 Windows 7 Professional(64 位)下的 Outlook 2010 中没有问题。

回答by Rajesh Hegde

This is because chrome handles the mailto in different way. You can got to chrome://settings/handlersand make sure that which is the default handler. In your case it will be none. Now go to gmail.com. You should see something like this when you click on the button beside the bookmark button.

这是因为 chrome 以不同的方式处理 mailto。您可以访问chrome://settings/handlers并确保哪个是默认处理程序。在你的情况下,它不会。现在去 gmail.com。当您单击书签按钮旁边的按钮时,您应该会看到类似的内容。

Set mailto in chrome

在 chrome 中设置 mailto

If you wish to open all email links through gmail then set use gmail. Now when you click on mailto button, chrome will automatically opens in gmail.

如果您希望通过 gmail 打开所有电子邮件链接,请设置使用 gmail。现在,当您单击 mailto 按钮时,chrome 将自动在 gmail 中打开。

回答by nardocesar

It happens because your email default programdoesn't working correctly.

发生这种情况是因为您的电子邮件默认程序无法正常工作。

回答by Kirk Strobeck

This fixed mine .. Set your default email reader.

这个固定的我.. 设置您的默认电子邮件阅读器。

http://see.kirkstrobeck.com/VD7s

http://see.kirkstrobeck.com/VD7s

回答by Jerome

It is not because of the Chrome Settings... Chrome is more specific for the Html and CSS, so your problem is probably that one of your 's is going over the link or image if you're trying to use an image as a mailto command. Once you are on the page you are trying to make this work right click and choose "inspect element" and check if another element is going over your link... Then in Css fix that and your mailto link will work...

这不是因为 Chrome 设置... Chrome 更具体地针对 Html 和 CSS,所以您的问题可能是,如果您尝试将图像用作mailto 命令。进入页面后,您尝试右键单击并选择“检查元素”并检查是否有另一个元素通过您的链接...然后在 Css 中修复该问题,您的 mailto 链接将起作用...

Hope this helps

希望这可以帮助

website design

网站设计