📜  如何使 btn 居中 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:13.327000             🧑  作者: Mango

代码示例1
text-align: center - By setting the value of text-align property of parent div tag to the center.
margin: auto - By setting the value of margin property to auto.
display: flex - By setting the value of display property to flex and the value of justify-content property to center.
display: grid - By setting the value of display property to the grid.