1
In this plunk私は開いている角度UIモーダルを持っていて、バックグラウンドで何も編集/変更することはできません。モーダルウィンドウを開いたままテキストフィールドを編集する必要があります。これは可能ですか?角度UIモーダルを開いたまま背景を編集する
HTML
Enter 222 in this field without closing the modal:<input type="text" ng-model="someField">
<style>
.modal-backdrop.in {
opacity: 0;
}
.app-modal .modal-dialog {
top: 80px;
width: 180px;
}
</style>
<script type="text/ng-template" id="myModalContent.html">
<div class="modal-header">
<p class="modal-title">The Title</p>
</div>
SOME CONTENT
</script>
Javascriptを
var app = angular.module('app', ['ui.bootstrap']);
app.controller('ctl', function ($scope,$uibModal) {
$scope.modalInstance = $uibModal.open({
templateUrl: 'myModalContent.html',
windowClass: 'app-modal',
backdrop: 'static'
});
});
なぜあなたは 'position:relative;'を必要としますか? – ps0604
これを取り除いて見た目を見てください;)静的に配置された要素ではz-indexは機能しません。 –
私があなたのアプローチで持っている問題は、フィールドがモーダルの上に表示されていることです。私はモーダルがフィールドの上にある必要があり、同時にフィールドに値を入力できるようにする必要があります。 [このplunkを見てください](http://plnkr.co/edit/yEK0y0MtC5Tnzkia3VDJ?p=preview)。 – ps0604