我在IE 11上遇到了Z-index的問題,在彈出的消息中出現其他元素下的下拉列表。讓我給你看一張從該頁面捕獲的小圖。Z-index在Internet Explorer 11中無法正常工作
我reasearch了很多候選條件的解決方案,但沒有任何確實爲我工作。我也是使用PrimeFaces與角2.我發現this solution來解決這樣的問題在IE:
<div style="position: relative; z-index: 3000">
<div style="position: absolute; z-index: 1000">
[ ... ] <!-- The drop down menu will be here -->
</div>
</div>
我試圖用這種方式跟我的代碼,但不工作。 :(
<p-dialog header="Assign claim {{ vm.request.id }}" [(visible)]="vm.isDisplayed" [width]="700" [modal]="true" >
<div class="ui-g form-group">
<div style="z-index: 3000">
<div class="ui-g-6">
<h4>Lorem ipsum</h4>
{{vm.request.responsible}}
</div>
<div class="ui-g-6">
<h4>et dolo</h4>
<div style="z-index: 1000"> <!-- This dropdown menu should to appear over the form, not behind :( -->
<p-dropdown class="popup-dropdown" [(ngModel)]="vm.id" [options]="vm.users" [autoWidth]="false" (onChange)="changeAssignedUserId($event.value)">
</p-dropdown>
</div>
</div>
<div class="ui-g ui-g-12"></div>
</div>
</div>
<!-- More awesome code! -->
任何人可以幫助我嗎?
在此先感謝大家。 Ashia。
這是真的謝謝!現在工作正常。 ;-) – Ashia