detection on iOS for dates?
I realize that there is a meta tag for disabling the auto formatting of a telephone number in iOS but I wondered if its possible in iOS for things like a date or time.
Anyone have any ideas?
将此标签添加到您的标题
<meta name="format-detection" content="date=no">
There is no meta way at the moment. However there are two tricks to break the detection.
I advise to split the date/time with a harmless HTML element, like a span:
Mon<span></span>day
Another trick is adding a zero-width space:
Mon​day
However this is less stable, for example in the preview text of iOS 6-8, there the zero with space is displayed like a regular space.
This isn't possible for dates or addresses. Unfortunately, phone numbers are the only type covered in Apple's documentation: https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html
链接地址: http://www.djcxy.com/p/56256.html上一篇: OpenMPI使用MINLOC减少
下一篇: 在iOS上检测日期?