禁用的WebView邮寄地址的自动链接 [英] Disable Automatic Linking of Mailing Address in WebView

查看:187
本文介绍了禁用的WebView邮寄地址的自动链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android的WebView会自动检测在html邮件地址,并允许您点击它推出的地图。反正是有没有本地code更改为禁用此?我可以添加一些东西到HTML标记或发生取消JavaScript事件,以prevent呢?

The android WebView will automatically detect a mailing address in the html and allow you to click on it to launch a map. Is there anyway to disable this without a native code change? Can I add something to the html markup or cancel a javascript event to prevent this from happening?

如果我需要在本地code这种变化,如何做呢?

If I need to make this change in native code, how is that done?

编辑:
当我说邮寄地址,我的意思是实际地址,如:

When I say mailing address, I mean a physical street address, like:

123大街
Sometown,CA 12345

123 Main Street Sometown, CA 12345

推荐答案

您可能需要使用下面的meta标签在你包括web视图页面试试,如果可能的话。

You might want to try using the following meta tag in the page you're including in the WebView, if that's possible.

<meta name="format-detection" content="address=no" />

来源:的http://phpaul.word$p$pss.com/2011/01/14/writing-a-webpage-for-a-mobile-device/

这篇关于禁用的WebView邮寄地址的自动链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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