How to set css margin for my ng-content all child html elements?
问题 I need margin top,bottom,left,right of my all html components inside the ng-content.How to write the css for that? I tried but not working.Please help me to resolve this issue. app.component.html: <div class="wrapper"><ng-content></ng-content></div> app.component.css: .wrapper{ position:fixed; background-color:#ccc; height:60px; padding:10px; bottom:0; left:0; width:100%; } .wrapper:: ng-deep <ng-content>{ margin:5px 8px 4px 2px; padding:0; text-align:center; } 回答1: app.component.html <div