我正在做一个元素,我使用了很多 md 对话框。我想知道如何禁用背景。我查看了 inspect element (Chrome),但似乎找不到任何样式来禁用....
有人有想法吗?
最佳答案
hasBackdrop - {boolean=}: Whether there should be an opaque backdrop behind the dialog. Default true.
var confirm = $mdDialog.confirm()
.parent(angular.element(document.body))
.title('Would you like to delete your debt?')
.content('All of the banks have agreed to forgive you your debts.')
.ariaLabel('Lucky day')
.ok('Please do it!')
.cancel('Sounds like a scam')
.targetEvent(ev)
.hasBackdrop(false);
工作代码笔:http://codepen.io/anon/pen/dogrXG
单击该按钮,您会看到一个没有背景的对话框。
关于css - 如何使用 Angular Material 禁用背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31649262/