Skip to content

[html] 第67天 请写出唤醒拔打电话、发送邮件、发送短信的例子 #407

@haizhilin2013

Description

@haizhilin2013
Collaborator

第67天 请写出唤醒拔打电话、发送邮件、发送短信的例子

Activity

xiangshuo1992

xiangshuo1992 commented on Jun 22, 2019

@xiangshuo1992
Contributor

不会,没用过,啥也不说了,贴搜索答案吧

<a href="tel:139xxxxxxxx">一键拨打号码</a>
<a href="mailto:yuojian@163.com">一键发送邮件</a>
<a href="sms:139xxxxxxx">一键发送短信</a>

顺便想起来 input 也有几个类型来影响键盘弹出的样式

<input type="text" placeholder="请输入文字"/>
<input type="number" pattern="[0-9]*" placeholder="请输入qq号"/> 
//type="number"限定输入数字,pattern="[0-9]*"限制数字范围
<input type="tel" placeholder="请输入电话"/>
<input type="date" placeholder="请输入日期"/>
<input type="datetime-local" placeholder="请输入时间"/>
yxkhaha

yxkhaha commented on Jun 22, 2019

@yxkhaha
<a href="tel:110">拨号</a>
<a href="webyxk666@163.com">发邮件</a>
<a href="sms:110">发短信</a>
xiangshuo1992

xiangshuo1992 commented on Jun 24, 2019

@xiangshuo1992
Contributor
<a href="tel:110">拨号</a>
<a href="webyxk666@163.com">发邮件</a>
<a href="sms:110">发短信</a>

邮件这个有问题哈,需要mailto:webyxk666@163.com

smile-2008

smile-2008 commented on Jan 7, 2021

@smile-2008

不会,没用过,啥也不说了,贴搜索答案吧

<a href="tel:139xxxxxxxx">一键拨打号码</a>
<a href="mailto:yuojian@163.com">一键发送邮件</a>
<a href="sms:139xxxxxxx">一键发送短信</a>

顺便想起来 input 也有几个类型来影响键盘弹出的样式

<input type="text" placeholder="请输入文字"/>
<input type="number" pattern="[0-9]*" placeholder="请输入qq号"/> 
//type="number"限定输入数字,pattern="[0-9]*"限制数字范围
<input type="tel" placeholder="请输入电话"/>
<input type="date" placeholder="请输入日期"/>
<input type="datetime-local" placeholder="请输入时间"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @smile-2008@haizhilin2013@xiangshuo1992@yxkhaha

        Issue actions

          [html] 第67天 请写出唤醒拔打电话、发送邮件、发送短信的例子 · Issue #407 · haizlin/fe-interview