父级: height: 100%;display: table; 子级: vertical-align:middle;display:table-cell; 转载于:https://www.cnblogs.com/rockyan/p/8482838.html