0


element ui el-row标签中的gutter干嘛用的

在 Element UI 的

  1. el-row

标签中,

  1. gutter

属性用于设置行内列之间的间距(空隙)。这个属性通常用于控制列之间的水平间距,使得布局看起来更加美观和整齐。

当你在一个

  1. el-row

中包含多个

  1. el-col

(列)时,你可以使用

  1. gutter

属性来设置列之间的空隙,以增加页面的可读性和美观度。例如:

  1. <template>
  2. <el-row :gutter="20">
  3. <el-col :span="12">Column 1</el-col>
  4. <el-col :span="12">Column 2</el-col>
  5. </el-row>
  6. </template>

在上面的示例中,我们在

  1. el-row

中设置了

  1. gutter

属性为

  1. 20

,这意味着

  1. Column 1

  1. Column 2

之间的水平间距为

  1. 20px

通过调整

  1. gutter

属性的值,你可以自定义列之间的间距以满足你的布局需求。这有助于创建各种不同样式的页面布局。


本文转载自: https://blog.csdn.net/xuanyuanjiaqi/article/details/132754200
版权归原作者 serve the people 所有, 如有侵权,请联系我们删除。

“element ui el-row标签中的gutter干嘛用的”的评论:

还没有评论