how to remove the white space between two span tags?

后端 未结 5 2153
死守一世寂寞
死守一世寂寞 2021-01-15 10:33



        
5条回答
  •  渐次进展
    2021-01-15 11:20

    just give font-size: 0; to .top-left-part and try....

    .top-left-part {
       width: 220px;
       float: left;
       background-color: #ffffff;
    /* padding-top: 60px; */
       font-size: 0;
     }
    

    Actually by default display inline-block will create one invisible node between the elements so we need to remove that node giving font-size: 0 to the parent element. And you have to give font-size to your child elements.

提交回复
热议问题