is usually written in a structure like ul>li, and then the li of display is set to inline-block, and it is reversed. However, there is usually at least one line break between li and li, such as:
<ul>
<li>A</li>
<li>B</li>
</ul>
This kind has line breaks, unless you write:
<ul><li>A</li><li>B</li></ul>
Otherwise, the newline character will cause a gap between li, which is the reason for the newline problem in Figure 1. (Master Zhang Xinxu mentioned this in his blog, I suggest you read it~) And if a global font is set, one possibility is to make the line breaks "thinner", so the second line will be Pull up.
is usually written in a structure like
ul>li
, and then theli
ofdisplay
is set toinline-block
, and it is reversed. However, there is usually at least one line break betweenli
andli
, such as:This kind has line breaks, unless you write:
Otherwise, the newline character will cause a gap between
li
, which is the reason for the newline problem in Figure 1.(Master Zhang Xinxu mentioned this in his blog, I suggest you read it~)
And if a global font is set, one possibility is to make the line breaks "thinner", so the second line will be Pull up.
Guess: Try removing the spaces and line breaks between tags like ul and li in your html.