行内元素图片默认和父元素的基线对齐,所以图片和父元素之间会有缝隙解决方法:1.设置为块元素 display:block; / display:inline-block;2.可以将文本的字体大小设置为03.vertical-align:bottom