法一:父元素 display:flex,align-items:center;
法二:元素绝对定位,top:50%,margin-top:-(高度/2)
法三:高度不确定用 transform:translateY(-50%)
法四:父元素 table 布局,子元素设置 vertical-align
法一:父元素 display:flex,align-items:center;
法二:元素绝对定位,top:50%,margin-top:-(高度/2)
法三:高度不确定用 transform:translateY(-50%)
法四:父元素 table 布局,子元素设置 vertical-align