如何跨浏览器为禁用的元素制作一致的Tabbing行为

时间:2016-07-20 08:10:05

标签: html browser tabbing

Tab键在不同浏览器中的行为是不同的。在IE的情况下,焦点不会是禁用标签,但在FF和chrome的情况下,焦点将是相同的。

disabled="disabled"

当div周围有属性 <form name="myReferenceDataForm" role="form" ng-submit="AddNewGroupMembershipReferenceRecord()" style="margin: 10px"> <div class="form-group row"> <div style="padding-bottom:5px; padding-top:5px; "> <label for="GroupCode" class="col-sm-4 form-control-label"> Group Code <span class="requiredRed">*</span> </label> <div class="col-sm-8"> <input ng-model="referenceAddRecord.groupCode" class="form-control" id="GroupCode" type="text"> </div> </div> </div> <div class="form-group row"> <div style="padding-bottom:5px; padding-top:5px; "> <label for="GroupName" class="col-sm-4 form-control-label"> Group Name <span class="requiredRed">*</span> </label> <div class="col-sm-8"> <input ng-model="referenceAddRecord.groupName" id="GroupName" class="form-control" type="text"> </div> </div> </div> <div class="form-group row"> <label for="GroupType" class="col-sm-4 form-control-label">Group Type </label> <div class="col-sm-8"> <select name="selGroupType" id="selGroupType" class="form-control" ng-change="referenceAddRecord.populateGroupTypeDetails(selGroupType)" ng-options="groupType.value for groupType in referenceAddRecord.groupTypes track by groupType.id" ng-model="referenceAddRecord.groupType"></select> </div> </div> 时,知道如何让FF和Chrome专注于h1吗?

0 个答案:

没有答案