父级设置 为 block ;
子级 用 float 浮动
<h3 slot="title" class="category__header-title"> <Icon type="ios-paper-outline" color="#2D8cF0" size="25"/> 数据管理 <div class="pull-right"> <Button type="primary" @click="handleSubmit('formInline')" >查询</Button> <Button @click="handleReset('formInline')" style="margin-left: 8px">重置 </Button> </div> </h3>
css
.pull-right { float: right!important; } .category__header-title { display: block; }
效果显示: