<el-row :gutter="20"> <el-col :span="8"> <el-input class="searchInput"> <el-button slot="append" class="el-icon-search" type="primary"></el-button> </el-input> </el-col> <el-col :span="10"> <el-button type="primary">添加商品</el-button> </el-col> </el-row>
input沒有設置placeholder會導致對不齊 原因不詳
添加之后就解決了
相差4px