Home  >  Article  >  Web Front-end  >  HTML5实现自定义的数字键盘?

HTML5实现自定义的数字键盘?

WBOY
WBOYOriginal
2016-06-07 08:44:514548browse

回复内容:

打开 vs code ,打开 devtools ,然后把它的 caret 效果扒走。 你可以搞一个div用来模拟光标

但是这需求是什么鬼! 模拟输入框,输入框用div,光标可以用after,css3实现闪烁。
如此就不存在键盘弹出的一系列问题。 textRange是IE独占的API吧…………你是怎么在移动端调用它的? 最快速的解决方法是把产品经理宰了......世界清静了! 反人类的做法; 其实更有必要重新考虑下这个需求是为了什么。

这么折磨自己何必呢。 前几天去饭馆微信扫码支付就是先弹出的h5,输入金额,可能会有优惠,点确定,这时候才拉起微信支付,确定最终数额,输密码,支付完毕。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn