我想在flexbox上设置背景颜色,并尝试如下。在App自定义背景颜色flexbox
类定义:
<App id="app" class="weight-protocol">
</App>
上实现Flexbox:
<FlexBox
height="20%"
width="100%"
alignItems="Start"
class="calendar-header-bg"
justifyContent="Center">
在CSS文件
:
.weight-protocol .calendar-header-bg {
background-color: #007DB2;
}
看看代码检查器,自定义CSS类停留在开始calendar-header-bg
而不是最后。