一、 el-col高度一致且内容居中
1.高度一致
type="flex"
例:

2.内容居中
主体内容:style={
position: relative;
top:50%;
transform:translateY(-50%);
}
例:

二、只内容居中: align="middle"
<el-row align="middle"> </e-row>
一、 el-col高度一致且内容居中
1.高度一致
type="flex"
例:
2.内容居中
主体内容:style={
position: relative;
top:50%;
transform:translateY(-50%);
}
例:
二、只内容居中: align="middle"
<el-row align="middle"> </e-row>
本文标题:Vue e-row、el-col高度一致且内容居中
本文链接:https://www.haomeiwen.com/subject/glqctltx.html
网友评论