同时在两个文本框上显示光标 [英] Show cursor on two text box at same time

查看:69
本文介绍了同时在两个文本框上显示光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个文本框,

<input type="text" id="left" />
<input type="text" id="right" />

是否可以同时聚焦这两个文本框? 我不知道怎么可能.我需要同时在这两个文本框中显示光标. 如果我把焦点集中在#left,#right就会失去焦点.

Is it possible to focus these two text boxes at the same time? I don't know how it possible.I need to show cursor in these two text boxes at the same time. if i focus #left ,#right lost its focus.

注意:我正在尝试创建并排的Web应用程序.在单个网页上显示两个相同的视图.

我知道如何显示相同的值,我需要显示光标在两个输入上闪烁.

I know how to show the same values,I need to show the cursor blinking on two inputs.

推荐答案

您不能,而且您实际上不应该... 就像要求您在看电视的同时读书.

You can't, and you really shouldn't... That's like asking you to read a book while watching TV.

但是,在多用户&多点触控OS机器.也就是说,同一台计算机上的两个用户可以在同一表面上同时执行两个不同的任务.但这是军事.甚至,一个用户一次只能拥有一个输入焦点.

However, that sort of thing, might be possible on multi-user & multi-touch OS machines. That is, two users on the same machine can work two different tasks simultaneously on the same surface. But that's military. And even than, one user, can only have one input focus at a time.

这篇关于同时在两个文本框上显示光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆