工作中遇到在布局的时候,最后一个margin-right:0不想要,想总结一下。
先上代码:
css:(el-checkbox为父级元素)
.el-checkbox:not(:last-of-type){
margin-right:0;
}
工作中遇到在布局的时候,最后一个margin-right:0不想要,想总结一下。
先上代码:
css:(el-checkbox为父级元素)
.el-checkbox:not(:last-of-type){
margin-right:0;
}