Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在测试一个 mvc3 网站,以便仅使用键盘即可访问它。
我的问题是我有一个带有单击选项的 jquery 弹出框,但访问它们的唯一方法是单击该框,然后您可以使用 keybored。
有没有一种方法可以自动关注弹出窗口而不点击它。
谢谢
jQuery:
$(element).focus();
这将焦点设置到给定元素