我正在寻找一个使元素成为白色背景的类。
可能是类似 .bg-white 的东西,我在 Bootstrap 中找不到它,但它可能隐藏在某个地方?
最佳答案
从 Bootstrap 4 开始,Bootstrap 确实有白色、浅色和深色背景类。
HTML:
<div class="bg-light text-dark">Light background</div>
<div class="bg-dark text-white">Dark background</div>
<div class="bg-white text-dark">White background</div>
关于css - Bootstrap 中的白色背景类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21477101/