不定宽高元素的水平垂直居中

    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%); 

猜你喜欢

转载自www.cnblogs.com/wwj007/p/11712956.html