【发布时间】:2015-03-29 14:46:11
【问题描述】:
这可以使用 CSS 创建吗:
我尝试过使用 PNG 图片:
.x {
position:relative;
top: 100px;
left: 0px;
height: 120px;
width: 300px;
display: block;
}
.y {
position:relative;
top: -20px;
left: 0px;
height: 120px;
width: 300px;
display: block;
transform: rotate(60deg);
}
.z {
position:relative;
top: -140px;
left: 0px;
height: 120px;
width: 300px;
display: block;
transform:rotate(-60deg)
}
<img class="x" src="http://i.stack.imgur.com/Qf8Ot.png">
<img class="y" src="http://i.stack.imgur.com/Qf8Ot.png">
<img class="z" src="http://i.stack.imgur.com/Qf8Ot.png">
但我希望重叠在第一张图像中是白色的。有什么线索吗?非常感谢。
【问题讨论】:
-
@Petah 好的,谢谢,但仅在 CSS 中呢?