<style>
span {
    display: inline-block;
    font-size: 12px;
}
</style>
<div>
    <span>hello </span>
    <span>world</span>
</div> 
 
 
where did the extra height come from?
<style>
span {
    display: inline-block;
    font-size: 12px;
}
</style>
<div>
    <span>hello </span>
    <span>world</span>
</div> 
 
 
where did the extra height come from?
you can tell where it came from by setting the line-height of div to 1em.
Previous: What if the Hbase1.2 under Ambari wants to upgrade to 2.0?
Next: How to solve the stack overflow caused by the creation of segment tree by js?