-2
我已经尝试了与此问题相关的Stack Overflow中的几乎所有解决方案。我有下面的CSS代码。如何在伪元素和较低的z-index之后使用css三角形?
.logo {
background-image: url("../Images/Brookland-Splash-
MOBILE_0000s_0000s_0001_BrooklandPress-CMYK-copy-2.png");
width:124px;
height: 131px;
float: left;
margin-left: 290px;
margin-top: 30px;
margin-bottom: 93px;
z-index: 10;
}
.logo::after {
content: '';
border-left: 80px solid transparent;
border-right: 80px solid transparent;
border-top: 80px solid white;
position: absolute;
width: 0;
height: 0;
top: 120px;
left: 275px;
clear: both;
}
@超级用户只需使用
position: relative
。这不适用于我 –@John。开发人员可以分享一个工作'小提琴',以便我们可以跟踪你的问题 –