阿神2017-04-17 11:34:59
box-shadow:0 1px 0 rgba(0,0,0,.2) inset,0 -1x 0 rgba(255,255,255,.2) inset;
Exchanging 1px and -1px can raise; highlight The dark edge is translucent; there is no need to consider the color;
PHPz2017-04-17 11:34:59
Hmm, thanks @golden_freeman_china for the tip.
1 2 |
|
黄舟2017-04-17 11:34:59
:before,:after{
border:1px solid yellow;
}
This can be achieved by combining pseudo elements with two borders. The color of the two borders is the key