如果要在 el-row 中使用固定布局,可以在 el-row 上使用 fixed 属性。
例如:
<el-row :gutter="20" fixed>
<el-col :span="12">
左边的列
</el-col>
<el-col :span="12">
右边的列
</el-col>
</el-row>
这样 el-row 就会使用固定布局,左右两列的宽度也就固定了。
另外,如果想要让 el-row 的高度也固定,可以在 el-row 上使用 height 属性。例如: