语言使用 angular9
html文件
<div [ngStyle]="calcHeight()"></div>
ts文件
calcHeight(): {'height': string}{
return {
'height': 'calc(100% - 15px)'
};
}
语言使用 angular9
html文件
<div [ngStyle]="calcHeight()"></div>
ts文件
calcHeight(): {'height': string}{
return {
'height': 'calc(100% - 15px)'
};
}