Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haizhilin2013 opened this issue Jun 21, 2019 · 4 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

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

@haizhilin2013 haizhilin2013 added the html html label Jun 21, 2019
@xiangshuo1992
Copy link
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
Copy link

yxkhaha commented Jun 22, 2019

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

@xiangshuo1992
Copy link
Contributor

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

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

@MrZ2019
Copy link

MrZ2019 commented Jan 7, 2021

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

<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
Labels
html html
Projects
None yet
Development

No branches or pull requests

4 participants