我已经尝试了与此问题相关的Stack Overflow中的几乎所有解决方案。我有以下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;
}
答案 0 :(得分:0)
只需在position: relative
div
.logo
即可
.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;
position: relative
}
.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;
}