【发布时间】:2022-01-22 21:59:33
【问题描述】:
我是 Angular 和 Bootstrap 的新手
其实我的浏览器里有这个:
这在我的代码中
<ng-template #newSlaVmData let-modal>
<div class="modal-header modal-slaVMData">
<h4 class="modal-title" id="modal-basic-title">
Add
</h4>
<button type="button" class="close" aria-label="Close" (click)="modal.dismiss('Cross click')">
<span aria-hidden="true">
×
</span>
</button>
</div>
如您所见,部分代码是由 Bootstrap 生成的。
我想知道如何更改“modal-dialog”(浏览器代码)的 CSS?
我尝试了不同的方法,比如在我的 SCSS 文件中添加这个类,但没有奏效。
我使用这些依赖项:
"@ng-bootstrap/ng-bootstrap": "^9.1.3"
"bootstrap": "^4.6.0",
【问题讨论】:
标签: javascript css angular typescript bootstrap-4