This article is about the use of display:inline;. When I was making a layout a few days ago, I used this effect, but it never came out. I wasted two hours and added three lines of code to solve it. Today, suddenly When I think about this, I always feel something is wrong, because my idea is right, but the effect just can’t come out; I rewrite the code and finally find the problem, it’s that damn space bug again;
below Show it to everyone so that the same problem doesn’t happen to you again;
Let’s take a look at the CSS code below first: