href =“ tel:”和手機號碼

本文翻譯自:href=“tel:” and mobile numbers

If I use tel: I should write the international phone code, like that. 如果我使用tel:我應該這樣寫國際電話代碼。

<a href="tel:+6494461709">61709</a>

So far, so good, but I can't find information on how to write a cell phone number in an "international" way, if there is one. 到目前爲止,還算不錯,但是如果有的話,我找不到有關如何以“國際”方式寫手機號碼的信息。


#1樓

參考:https://stackoom.com/question/1AFcu/href-tel-和手機號碼


#2樓

I know the OP is asking about international country codes but for North America, you could use the following: 我知道OP正在詢問國際國家/地區代碼,但對於北美,您可以使用以下代碼:

 <a href="tel:1-847-555-5555">1-847-555-5555</a> <a href="tel:18475555555">Click Here To Call Support 1-847-555-5555</a> 

This might help you. 這可能對您有幫助。


#3樓

When dialing a number within the country you are in, you still need to dial the national trunk number before the rest of the number. 在您所在國家/地區內撥打號碼時,仍然需要先撥打國家中繼號碼。 For example, in Australia one would dial: 例如,在澳大利亞,您會撥打:

   0 - trunk prefix
   2 - Area code for New South Wales
6555 - STD code for a specific telephone exchange
1234 - Telephone Exchange specific extension.

For a mobile phone this becomes 對於手機來說,這變成了

   0 -      trunk prefix
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

Now, when I want to dial via the international trunk, you need to drop the trunk prefix and replace it with the international dialing prefix 現在,當我想通過國際中繼撥號時,您需要刪除中繼前綴並將其替換爲國際撥號前綴。

   + -      Short hand for the country trunk number
  61 -      Country code for Australia
   4 -      Area code for a mobile telephone
1234 5678 - Mobile telephone number

This is why you often find that the first digit of a telephone number is dropped when dialling internationally, even when using international prefixing to dial within the same country. 這就是爲什麼您經常發現在撥打國際電話時,即使使用國際前綴在同一國家/地區內撥打電話時,電話號碼的第一位數字也被丟棄的原因。

So as per the trunk prefix for Germany drop the 0 and add the +49 for Germany's international calling code (for example) giving: 因此,按照德國中繼線前綴,0刪除,然後將+49用作德國的國際電話代碼 ,例如:

 <a href="tel:+496170961709" class="Blondie"> Call me, call me any, anytime <b>Call me (call me) I'll arrive</b> When you're ready we can share the wine! </a> 


#4樓

The BlackBerry browser and Safari for iOS (iPhone/iPod/iPad) automatically detect phone numbers and email addresses and convert them to links. BlackBerry瀏覽器和iOS版Safari(iPhone / iPod / iPad)會自動檢測電話號碼和電子郵件地址,並將它們轉換爲鏈接。 If you don't want this feature, you should use the following meta tags. 如果您不希望使用此功能,則應使用以下元標記。

For Safari: 對於Safari:

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

For BlackBerry: 對於BlackBerry:

<meta http-equiv="x-rim-auto-match" content="none">

Source: mobilexweb.com 資料來源: mobilexweb.com


#5樓

It's the same. 一樣的。 Your international format is already correct, and is recommended for use in all cases, where possible. 您的國際格式已經正確,建議儘可能在所有情況下使用。


#6樓

As an additional note, you may also add markup language for pausing or waiting, I learned this from the iPhone iOS which allows numbers to be stored with extension numbers in the same line. 另外,您還可以添加標記語言以暫停或等待,這是我從iPhone iOS中學到的,它允許數字與分機號存儲在同一行中。 A semi-colon establishes a wait , which will show as a next step upon calling the number. 分號建立一個wait ,它將在呼叫該號碼時顯示爲下一步。 This helps to simplify the workflow of calling numbers with extensions in their board. 這有助於簡化在其分機板中撥打電話的工作流程。 You press the button shown on the bottom left of the iPhone screen when prompted, and the iPhone will dial it automatically. 出現提示時,按iPhone屏幕左下方顯示的按鈕,iPhone會自動撥號。

<a href="tel:+50225079227;1">Call Now</a>

The pause is entered with a comma ",", allowing a short pause of time for each comma. 暫停用逗號“,”輸入,每個逗號的暫停時間很短。 Once the time has passed, the number after the comma will be dialed automatically 時間過後,逗號後的號碼將自動撥打

<a href="tel:+50225079227,1">Call Now, you will be automaticlaly transferred</a>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章