【发布时间】:2020-07-15 08:10:23
【问题描述】:
我尝试使用bootstrap-vue 在 .modal-header 中更改 b-modal -> 中的背景颜色。但是 vue 看不到我的样式,我不知道为什么:/
这是代码。我在link中回复了
HTML:
b-modal(id="card-1" title="CARTÃO DE CRÉDITO" :modal-class="myclass" header-text-variant="light")
VUE
export default {
data: {
myclass: ['myclass']
},
}
CSS
.myclass > .modal-dialog > .modal-content > .modal-header {
background-color: #da2228 !important;
color: white;
}
但我仍然没有看到结果。模态标题是白色的。任何想法为什么?
【问题讨论】:
标签: css vue.js bootstrap-vue