the height of the code below will beyond single line 'a'
<span style="display:inline;line-height:0;">aaaaaaaaaaaaaaaaaaaaaa</span>
the height of the code below will keep unchanged the same as the height of single line 'a'
<span style="display:inline-block;line-height:0;">aaaaaaaaaaaaaaaaaaaaaa</span>
the code below shows the two kinds of appearance
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
.parent{
border:1px solid red;
margin:100px;
width: 300px;
}
.child1{
display:inline;
line-height:0;
font-size: 50px;
word-break: break-all;
}
.child2{
display:inline-block;
line-height:0;
font-size: 50px;
word-break: break-all;
}
</style>
<div class="parent">
<span class="child1">aaaaaaaaaaaaaaaaaaaaaa</span>
</div>
<div class="parent">
<span class="child2">aaaaaaaaaaaaaaaaaaaaaa</span>
</div>
</body>
</html>