Html 有没有办法在 ASP.net 中设置 Tab 顺序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/359583/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a way to set Tab Order in ASP.net?
提问by AnthonyWJones
I am trying to set up my tab order on the html side of my project. How do I set the tab order. Usually in visual basic, the option is in the menu bar under view/tab Order. How do I do this in asp?
我正在尝试在我的项目的 html 端设置我的 Tab 键顺序。如何设置 Tab 键顺序。通常在visual basic中,选项在view/tab下的菜单栏顺序。我如何在asp中做到这一点?
回答by AnthonyWJones
Add TabIndex="x" to each control that can receive focus where x is an integer indicating the desired order of the controls.
将 TabIndex="x" 添加到每个可以接收焦点的控件,其中 x 是一个整数,指示控件的所需顺序。