Tab-index从左到右然后下移 [英] Tab-index to move left-to-right then to down

查看:90
本文介绍了Tab-index从左到右然后下移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在AngularJS HTML中创建了一个应用程序。在此,文本框,链接,按钮和其他对象上的Tab键顺序应该是从左到右。一旦到达该行最右侧的对象,该标签应该向下并到最左边的文本框。为了实现这一点,我添加了tab-index元素,但根据需要我需要从左到右的移动。



下面添加了一个示例代码:

 < div class =col-sm-12style =margin-bottom:1%;> 
< div class =col-sm-5>
< div class =form-group>
< label class =control-labelfor =field_Name>名称< span style =color:red;> *< / span>< / label>
ng-model =vm.Name
ng-maxlength =255/>
< div ng-if =myForm.Name。$ invalid>

ng-if =myForm.Name。$ error.maxlength>
此字段不能超过255个字符。
< / p>
< / div>
< / div>
< div class =form-group>
< label class =control-label>上传示例文件< / label>
< input tab-index =2type =file
name =file
id =uploadSampleFile
ng-model =vm.File
ngf-select
accept =file_extension
ngf-min-size =5000>
< div ng-if =myForm.file。$ invalid>
< p class =help-blockng-if =myForm.file。$ error.minSize>文件大小应该大于5 KB。< / p>
< / div>
< / div>
< / div>
< div class =col-sm-5>
< div class =form-group>
< label class =control-labelfor =field_Description>档案描述< / label>