#A {
width: 100px;
height: 80px;
position: relative;
margin: 0 auto;
top: 50%;
transform: translateY(-50%);/* 添加偏移量,数值为A本身的百分比 */
}
#A {
width: 100px;
height: 80px;
position: relative;
margin: 0 auto;
top: 50%;
transform: translateY(-50%);/* 添加偏移量,数值为A本身的百分比 */
}