For example:
Li (
Width:100px;
Height: 30px
Line height: 30px
}
In this way, the text will be vertically centered in the li tag D.
The specific style can be specifically adjusted.
I hope it helps you.