margin: 0 auto; For the fixed width, set the horizontal center, the width is not fixed, the horizontal center is set, the parent element is set to text-align: center;, and the own element is set to display: inline-block; to be horizontally centered
display: inline-block; horizontally centered
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325005536&siteId=291194637
Recommended
Ranking