【发布时间】:2015-01-22 05:40:36
【问题描述】:
我想裁剪图像边缘以设置该边缘透明。当背景颜色为白色时,我使用 png 设置为该边缘。但是当它用于其他背景时,就会出现白边。所以我想知道如何裁剪图像边缘。 这是样式的 CSS
.cover-left-2 .avatar:after {
width: 38px;
height: 22px;
background-position: -47px bottom;
}
.avatar:after {
content: " ";
display: block;
position: absolute;
left: 0;
bottom: 0;
opacity: 0.9;
filter: alpha(opacity=80);
pointer-events: none;
background: url(../img/photo-corner-sw.png) no-repeat left bottom;
background-image: url(../img/photo-corner-sw.svg);
}
图像。
【问题讨论】: