移动HTML呈现数字 [英] Mobile HTML rendering numbers

查看:97
本文介绍了移动HTML呈现数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个移动网页显示银行对账单。像这样:

I have a mobile WEB Page showing a bank statement. Something like this:

DATE          | DESCRIPTION              | AMOUNT
--------------|--------------------------|---------------
Jan 2nd 2010  | Clothes                  |  USD 1.839.000
Sep 23rd 2010 | Drinks                   |  USD 2.837.000

我正在使用作为千位分隔符,因为这是我们的语言环境配置。

I am using . as a thousand separator since that's our locale configuration for that.

HTML非常简单。像这样:

HTML is very simple. Something like this:

<table>
   <tr>
      <td>DATE</td>
      <td>Clothes</td>
      <td>AMOUNT</td>
   </tr>
   <tr>
      <td>Jan 2nd 2010</td>
      <td>Clothes</td>
      <td>USD 1.839.000</td>
   </tr>
   <tr>
      <td>Sep 23rd 2010</td>
      <td>Drinks</td>
      <td>USD 2.837.000</td>
   </tr>
</table>

我遇到的问题是iPhone的Safari,Android浏览器和一些诺基亚浏览器正在思考(错误地)如 1.839.000 2.837.000 的电话号码是电话号码因此将它们作为链接打电话或发短信。

The problem I am having is that iPhone's Safari, Android Browsers and some Nokia Browsers are thinking (erroneously) numbers such as 1.839.000 and 2.837.000 are phone numbers hence rendering them as links to make phone calls or do some texting.

我的问题:是否有特殊的TAG / ATTRIBUTE / CSSSTYLE来告诉移动浏览器显示这种文本为纯文本

My question: Is there a special TAG/ATTRIBUTE/CSSSTYLE to tell mobile browser to show that kind of text as plain text?

非常感谢。

Thanks a lot.

推荐答案

我不知道Android或诺基亚,但对于iPhone,您可以使用元标记

I don't know about Android or Nokia, but for iPhone you could use the meta tag:

<meta name="format-detection" content="telephone=no">

禁止检测任何电话号码。

to disable detecting anything as a phone number.

这篇关于移动HTML呈现数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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