reactjs - 如何更改反应引导模式的背景颜色
问题描述
我想更改反应引导模式弹出窗口的背景颜色。
我的模态代码是 -
<Modal
show={this.state.show}
onHide={this.handleClose}
dialogClassName="modal-90w public-profile-modal-class"
size='lg'
aria-labelledby="example-custom-modal-styling-title"
>
那么如何改变呢?
解决方案
如果要更新模态背景,可以使用 CSS,例如:
.modal-backdrop {
background-color: green;
}
如果要更改模态背景,请使用:
<Modal className="my-modal" show={show}>
并在 CSS 中定义:
.my-modal .modal-content {
background-color: red;
}
推荐阅读
- r - 调解包 R - 连续治疗变量:如何定义治疗和控制值?
- python - tensorflow:无法加载动态库“cudart64_110.dll”;dlerror: 未找到 cudart64_110.dll
- powershell - 如何让写输出等到函数的输出准备好在powershell中发布?
- arrays - 从矩阵中删除行
- java - 创建优惠券机器时遇到问题
- java - 无法在 Mercurytravels.co.in 网站中导航日期选择器
- html - 从 html 按钮制作 csv 文件
- session - 如何使用 API 访问护照 js 会话?
- python - 无法在 GCP 中以编程方式限制计费:“无法禁用计费,可能需要检查权限”
- office365 - 在合规中心的哪里可以找到组角色分类列表查看器和数据分类内容查看器?