html点击input没有出现光标的解决办法:首先打开相应的HTML文件;然后用jquery写点击出现光标即可,代码如“$('.inputname, .inputphone').on('touchstart',function...)”。
本文操作环境:Windows7系统、HTML5、Dell G3电脑。
html5点击input没有出现光标完美解决方案
<input type="text" placeholder="输入姓名" class="inputname" id="id_name"> <input type="text" placeholder="输入手机" class="inputphone" id="id_phone">
直接自己用jquery 写点击出现光标
$('.inputname, .inputphone').on('touchstart',function () { $(this).focus(); })
【推荐:HTML视频教程】
立即学习“前端免费学习笔记(深入)”;
以上就是html点击input没有出现光标怎么办的详细内容,更多请关注php中文网其它相关文章!
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号