在低版本Umi中,全局样式可以写在自己less文件里面,例如:
global {
.AAA {
position: absolute;
top: 0;
left: 0;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: rgba(0,0,0,0);
}
}
但是在高版本中这种写法就不生效了,必须把全局样式放到global.less中
.AAA {
position: absolute;
top: 0;
left: 0;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: rgba(0,0,0,0);
}