Html: - 这里我从modalStyle设置了style属性,该属性位于typescript
中<div class="modal" tabindex="1000" [style]="modalStyle" >
组件: - 在打字稿中我使用domsanitizer设置高度,显示,minheight,这在chrome中有效但不在11中。即11高度min-height和display没有设置,因此弹出窗口不显示。
import { DomSanitizer } from '@angular/platform-browser';
export class Abc {
get modalStyle() {
return this._domSanitizer.bypassSecurityTrustStyle('display:block; height:'
+ (this.modalDialog.nativeElement.clientHeight + 200) + 'px;'
+ 'min-height:1500' + '' + 'px;');
}
}
}
答案 0 :(得分:0)
尝试添加此polyfill:
xtabs(seats ~ municipality + party, df)
# party
#municipality CDA Democraten 66 (D66) SP (Socialistische Partij) VVD
# Aa en Hunze 2 2 0 3
# Aalburg 3 0 0 1
# Aalsmeer 6 0 0 6
# Aalten 7 0 0 2
# Achtkarspelen 5 0 0 1
# Alblasserdam 3 2 0 2
# Albrandswaard 2 0 0 6
# Almelo 6 4 4 3
# Almere 2 6 4 5
# Alphen-Chaam 4 0 0 1
# Ameland 3 0 0 1
# Amersfoort 4 9 4 5
# Amstelveen 3 8 3 9
# Amsterdam 1 14 6 6