使用tabindex设置焦点 [英] set focus using tabindex

查看:73
本文介绍了使用tabindex设置焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用控件ID的情况下使用tabindex设置焦点控件?

how to set focus one control using tabindex without using control id?

推荐答案

您可以在页面上枚举控件,直到找到带有正确选项卡的控件为止索引,但请记住,多个控件可以具有相同的选项卡索引.
You can enumerate the controls on the page until you find the one with the right tab index, but keep in mind that more than one control can have the same tab index.


这篇关于使用tabindex设置焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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