图片底侧空白缝隙解决方案(HTML、CSS)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>图片底侧空白缝隙解决方案</title>
<style>
div {
border: 2px solid red;
}
img {
/* vertical-align: bottom; */
/* vertical-align: middle; */
/* vertical-align: top; */
/* 都可解决图片底侧空白缝隙解决方案 */
display: block;
/* 删掉文字即可看到效果 */
}
</style>
</head>
<body>
<div>
<img src="jt.png" alt="">ppa
</div>
</body>
</html>