vertical-align:baseline | top | middle | bottom
baseline:默认。
top:把元素的顶端与行中最高元素的顶端对齐
middle:把此元素放置在父元素的中部
bottom:把元素的顶端与行中最低的元素的顶端对齐
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vetical-align实现行内块与文字对齐</title>
<style>
img {
vertical-align: bottom;
vertical-align: middle;
vertical-align: top;
}
</style>
</head>
<body>
<img src="./images/ad-l.png" alt="">我是中间
</body>
</html>