利用好多方法,还是不能竖直居中,所以用了媒体查询
//1800到1920之间
@media screen and (min-width: 1800px) and (max-width:1920px){
/deep/ .ivu-card-body{
position: absolute;
top: 50%;
left: 72%;
//先定位 top为50% left定为中间,用margin放在指定的位置
margin: 301px 0 0 -180px;
//transform: translateY(83%);
//right: 11%;
//top: -3%;
background-color: rgba(255,255,255,0.0);
border: rgba(255,255,255,0.0);
.login_icon p{
font-size:24px;
color:white;
text-align: center;
padding:0 0 30px 0;
}
}
}