Css 如何更改引导模式标题颜色(背景和文本)
如何将引导模式标题背景更改为深蓝色,文本更改为白色。小提琴在这里:Css 如何更改引导模式标题颜色(背景和文本),css,twitter-bootstrap,bootstrap-modal,Css,Twitter Bootstrap,Bootstrap Modal,如何将引导模式标题背景更改为深蓝色,文本更改为白色。小提琴在这里: 您可以尝试使用以下CSS: .modal-header { background-color: darkblue; color: white; } .覆盖模式标头css类: .modal-header { color: white: background-color: blue; // Code of the exact color you want } 将此添加到css中 .modal-h
您可以尝试使用以下CSS:
.modal-header {
background-color: darkblue;
color: white;
}
.覆盖模式标头css类:
.modal-header {
color: white:
background-color: blue; // Code of the exact color you want
}
将此添加到css中
.modal-header{
background-color: darkblue;
color: white;
}
与其更改所有模态的颜色,为什么不将其添加到扩展CSS文件中呢
.modal-header.primary {
color: #fff;
background-color: #337ab7;
border-color: #337ab7;
}
然后将primary添加到您的模式标头中,这样:
<div class="modal-header primary">