【Html】【UI】禁用移动网页中的号码邮箱自动识别

移动浏览器会自动将符合格式的文本识别为号码邮箱
在这里插入图片描述

我们可以通过以下代码来禁用这个功能


    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <meta name="format-detection" content="telephone=no,email=no">
    </head>

如果我们又想把单个文本设置为号码或邮箱,可以将其设置为<a>标签


    <body>
        <a href="tel:110">10086</a>
        <a href="mailto:[email protected]">[email protected]</a>
    </body>

猜你喜欢

转载自blog.csdn.net/u013718730/article/details/90510639