H5相关

对于容器元素,尤其在做移动端产品时候,我们很自然会让其居中定位:

.container {
    position: absolute; left: 50%; top: 50%;
    transform: translate3d(-50%, -50%, 0);
}
原文地址:https://www.cnblogs.com/hupan508/p/5068815.html