删除垫高程上侧的盒子阴影

时间:2020-04-16 08:37:08

标签: angular angular-material

我在具有public function messages(){ $messages=[]; foreach ($this->get('email') as $key => $val) { $messages = [ "email.$key.value.required" => "$key th e-mail is required", "email.$key.value.email" => "$key th e-mail is wrong e-mail format", "name.$key.value.required" => "$key th name is required"]; } return $messages; } 类的mat-paginator的底部添加了mat-table

所以我也在mat-elevation-z4组件上添加了mat-elevation-z4类,但是分页器的上部阴影在表上溢出。 如何仅去除上方阴影?

mat-paginator类如下:

mat-elevation-z4

1 个答案:

答案 0 :(得分:0)

我发现上面的阴影是第三个阴影,所以我只需要删除它:

.mat-elevation-z4 {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 
        0 4px 5px 0 rgba(0, 0, 0, 0.14), 
        0 1px 10px 0 rgba(0, 0, 0, 0.12);
}