[Solution found!] 我认为您可以尝试以下方法: <div [ngStyle]="{'background-image': 'url(' + photo + ')'}"></div> 通过阅读您的ngStyle表情,我想您错过了一些“'” ...
確定! 回上一頁