1<style>
2 .el-parent {
3 display: flex;
4 align-items: center; /* vertical align */
5 justify-content: center; /* horizontal align */
6 text-align: center; /* center align text */
7 }
8</style>
9
1<style>
2 element
3 {
4 text-align: center;
5 }
6</style>
7-------------------------------------------------------------------------------
8style.css
9element
10{
11 text-align: center;
12}