Bootstrap

【element-ui】form表单设置label和input不在一行

.form-x{
  border: 1px solid red;
  & .el-form-item__label{
    float: none;
    word-break: break-word;
  }
  <el-form class="form-x" ref="form" :model="sizeForm" :rules="rulesForm">
            <el-form-item label="1.姓名" prop="name">
              <el-input v-model="sizeForm.name" readonly></el-input>
            </el-form-item>

 

;