how to remove the white space between two span tags?

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



        
5条回答
  •  不知归路
    2021-01-15 11:02

    Jordi Flores is right. Inline (and inline-block) elements are rendered like text characters, meaning a space or a newline in the HTML code will result in a space in the rendered output. You just have to remove the formatting characters in the code to fix this.

    If you want to keep your code organized, you can use HTML comments. For ex:

    My span 1My span 2My span 3My span 4

提交回复
热议问题