I have mobile site which have Simple Span having Phone number in it.
<span class="order1-button">999-120-9191</span>
Problem: when i open my page in iphone it have link on phone number. When i click on it option come to call.
How to remove it??
This is link of Fiddle . When you open it on iphone you also find it.
On other device button is simple without link which i need.
您可以在网页标题中添加一个元标记,以防止移动浏览器将电话号码转换为链接
<meta name="format-detection" content="telephone=no">
I believe you can use dataDetectorTypes
to tell the web view what links to ignore.
webview.dataDetectorType = UIDataDetectorTypeNone;
See the docs for all the types.
您也可以在该类中放置text-decoration:none。
删除文字装饰。
<span text-decorations="none" class="order1-button">999-120-9191</span>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.