0

I'm making the css tabs with shadows. How can I get rid of the bottom shadow in label? Here's an example: http://codepen.io/ekscentrysytet/pen/QbNdEB

I've tried z-index: -1; for label:after but shadow disappears.

4

2 回答 2

1

使用伪元素:before(你已经使用过after)制作一个白色的小矩形来隐藏它怎么样?

label:before {
  content:'';
  display:block;
  width:100%;
  height:15px;
  background-color:#fff;
  position:absolute;
  bottom:-11px;
  left:0;
  z-index:10;  
}

密码笔

于 2015-05-14T07:24:04.767 回答
0

尝试这个:

.tabinator input:checked + label:after {
     border-bottom: none;
     box-shadow: 0 -8px 15px #939393;
}
于 2015-05-14T06:16:44.980 回答