css怎么设置居中 css设置居中的方法 设置方法:1、通过margin: 0 auto; text-align: center实现水平居中;2、通过display:flex实现水平居中;3、通过display:table-cell和mar 2022-05-05 16:48:25