我使用bulma作为css框架,并在我的页面上有一个部分,我循环项目,并创建多行列.
<section class="section employees">
<div class="container">
<div v-for="(value, key) of employeesGroupedByDepartments">
<div class="columns is-multiline department">
<div class="title-with-line">
<h4><span>{{ key }}</span></h4>
</div>
<div class="employee column is-3" v-for="employee of value">
<div class="card">
<figure class="image is-96x96">
<img :src="employee.image.data.path" alt="">
</figure>
<h4 class="title is-5">
{{employee.title}}
</h4>
<h6 class="subtitle is-6">
<small>
{{getExtras(employee, 'position')}}
</small>
</h6>
</div>
</div>
</div>
</div>
</div>
</section>
Run Code Online (Sandbox Code Playgroud)
我想删除每个第一个子列的左边距,我尝试将两个类设置padding left 0为重要但没有任何效果:
.employees {
.column:first-child, employee:first-child {
padding-left: 0!important;
}
}
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
css ×1