如何给ElementUI表单分栏显示
通过使用elementUI的Layout布局完成
每行使用<el-row></el-row>标签包裹,通过<el-col :span="自定义数字"></el-col>完成布局
自适应布局,:span最大为24
如何给ElementUI表头加入自定义icon
<template slot="header">
<i class="question">
是否启用<img src="../../assets/images/question.png" class="questimg">
</i>
</template>
如何在单页面下修改elementui样式,不影响全局
在style标签中加入scoped属性,使用深度选择器,:deep(){},括号里面是需要修改的element样式类名
如何给HTML标签添加竖线
.tsbutton::before {
position: absolute; /*绝对定位*/
top: 50%; /*Y轴方向偏移自身高度的50%*/
transform: translatey(-40%); /*Y轴方向偏移微调*/
right: 82px; /*紧靠容器右边缘*/
content: ''; /*伪元素需要有内容才能显示*/
width: 1px; /*伪元素宽度*/
height: 16px; /*伪元素高度*/
background-color: #E2E2E2; /*伪元素颜色*/
}