0
切出我需要有一個div周圍20像素外側的灰色邊框。我也需要在div的右上方放一個剪輯。左上角的邊框必須與邊框的其餘部分相同,它需要是20px。裁剪也需要透明。接壤CSS卡在右上角
這裏是對我最好的嘗試:
http://jsfiddle.net/tybourque/2bZAW/5959/
.card-cutout:before {
content: '';
position: absolute;
top: -20px;
right: -80px;
border-top: 80px solid transparent;
border-left: 80px solid #828282;
width: 0;
z-index: 10;
}
.card-cutout:after {
content: '';
position: absolute;
top: 0px;
right: -62px;
border-top: 65px solid transparent;
border-left: 62px solid white;
width: 0;
z-index: 11;
}
你應該看看僞元素:before和:after – pol