element ui栅栏el-col el-row 兼容浏览器问题

在页面使用规整的el-col 结构,如下所示,但是页面在谷歌浏览器中显示正常,但在360浏览器中显示换行,原因是浏览器不兼容,有些行会高一些,则会出现换行效果。

                    <el-col :span="12">
                      <el-form-item label="张三">
                        <el-input v-model="formData.name" :></el-input>
                      </el-form-item>
                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="手机号码">
                        <el-input v-model="formData.phone"></el-input>
                      </el-form-item>
                    </el-col>
                         <el-col :span="12">
                      <el-form-item label="性别">
                        <el-input v-model="formData.sex" :></el-input>
                      </el-form-item>
                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="年龄">
                        <el-input v-model="formData.age"></el-input>
                      </el-form-item>
                    </el-col>

解决方法:在写上el-row就不会出错

                     <el-row>
                     <el-col :span="12">
                      <el-form-item label="张三">
                        <el-input v-model="formData.name" :></el-input>
                      </el-form-item>
                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="手机号码">
                        <el-input v-model="formData.phone"></el-input>
                      </el-form-item>
                    </el-col>
                    </el-row>
                    <el-row>
                         <el-col :span="12">
                      <el-form-item label="性别">
                        <el-input v-model="formData.sex" :></el-input>
                      </el-form-item>
                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="年龄">
                        <el-input v-model="formData.age"></el-input>
                      </el-form-item>
                    </el-col>
                    </el-row>

你可能感兴趣的:(ui,vue,vue.js,前端)