如何垂直居中<img>? 方法1: 父元素设置height=line-height,子元素设置vertical-align:middle; 方法2: 父元素display:table-cell;vertical-align:middle; 出入茅庐