样式部分需要单独建立页面
themered.module.css
.menu{
display: flex;
text-align: center;
width: 50%;
}
.menu .item{
flex:1;
background-color: hotpink;
line-height: 40px;
}
themeblack.module.css
.menu{
display: flex;
text-align: center;
width: 50%;
}
.menu .item{
flex:1;
background-color: #cccccc;
line-height: 40px;
}
页面部分