transform: translate(x,y) 如transform: translate(40%,50%)作用为元素向右偏移自身宽40%的距离并向下偏移自身高50%的距离,类似margin-left和margin-top;