子元素定宽高

absolute + margin负值

absolute(left,right,top,bottom) + margin + width + height

calc


子元素不固定宽高

display: table-cell;

absolute + transform

display:flex;

text-align:center;vertical-align:middle;