
2016-02-22 |&n λ¥♣bsp; 發布者:梁國(guó)芳&nbs¥"×αp; | € €查看(kàn):3320次
app開(kāi)發别的(de)地(dì)方倒也(yě)罷了(§&le),如(rú)果在用(yòng)戶名中出現(xiàn)數(s₹♦ hù)字(手機(jī)注冊新浪微(wēi)博的(de)話(huà)用(yò¥₩ ng)戶名就(jiù)是(shì)“手機(j☆£$¶ī)用(yòng)戶xxxxxxxx”),版式會(huì) ₩'很(hěn)惡心。
經過測試在a标簽中的(de)長(cháng)串數(÷λ"shù)字不(bù)會(huì)識别為(wèi)'₩電(diàn)話(huà),于是(shì)給出現(xiàn)用(yòng)戶®₹名但(dàn)沒有(yǒu)鏈接的(de)地(dì)方嵌套一(yī)£÷≠個(gè)無動作(zuò)的(de)a标簽,臨時(shí)解決了(le)這₩∑(zhè)個(gè)問(wèn)題。
但(dàn)是(shì)這(zhè)樣增加了(le)額外(wà≥$©φi)的(de)标簽,代碼的(de)語義性變得(de)很(hěn)差,而λ★且對(duì)大(dà)段文(wén)字不(bù)能(néng)用(γ'∑§yòng)這(zhè)個(gè)方法。
今天無意中撞進Safari的(de)官網,發δ∞現(xiàn)了(le)safari有(yǒu)個Ω>≠♠(gè)私有(yǒu)meta屬性可(kě)以解決這(zhè)個(gè ✔♥)問(wèn)題:
<meta name="form↔&at-detection" content="teleph•§$one=no" />
官網的(de)說(shuō)明(míng)如(rú)下(xiàδ): How do I disable automatic detectioε"n of phone numbers in webpa≥&↔ges? In Safari on iPhone,★♥ phone numbers are automaticallφβ£y detected and transformed into link÷"§s that dial the phone number ₽♠×when tapped. If you have γ↓strings of numbers in your webpage th× ≠at should not be automa♠™&γtically detected as phone n φδumbers, you can choose to disable thi₹×≠s feature on the entire page by addin★♠ ™g the meta tag shown in Lis₩ ✘ting 12.
