如何解决弹出窗口打开背景以及标题后也应该变灰
$ mdDialog.show({
控制器:userPRefrencesController,
templateUrl:“ ../ App / Views / UserPrefrencesTable.html”,
父级:angular.element(document.body),
targetEvent:ev,
clickOutsideToClose:否,
全屏:$ scope.customFullscreen,
})
解决方法
不清楚您要的是什么,
问题是“如何获得灰色背景?”
然后将答案设置为hasBackdrop
到true
。
$mdDialog.show({
controller: userPRefrencesController,templateUrl: '../App/Views/UserPrefrencesTable.html',parent: angular.element(document.body),targetEvent: ev,clickOutsideToClose: false,fullscreen: $scope.customFullscreen,hasBackdrop : true
})
如果问题是“如何还向标题添加灰色背景?”。
然后答案是减小CSS中标题的z-index。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。