要解决AngularJS UI-Bootstrap模态对话框被main.html覆盖的问题,你可以尝试以下解决方法:
.modal {
z-index: 1050;
}
angular.module('myApp').controller('myController', function($scope, $uibModal) {
$scope.openModal = function() {
var modalInstance = $uibModal.open({
templateUrl: 'myModalContent.html',
controller: 'modalController'
});
};
});
通过尝试上述解决方法之一,你应该能够解决AngularJS UI-Bootstrap模态对话框被main.html覆盖的问题。