Ich versuche Pfeil wie folgt zu implementieren.Brauchen nur Rand für Pfeil nicht Farbe
Dafür brauche ich nur Grenze nicht
Farbe Bitte überprüfen Sie diesen Link here
.pointer {
width: 200px;
height: 40px;
position: relative;
background: red;
}
.pointer:after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 0;
border-left: 20px solid white;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
}
.pointer:before {
content: "";
position: absolute;
right: -20px;
bottom: 0;
width: 0;
height: 0;
border-left: 20px solid red;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
}
<div class="pointer">
</div>
Der Hintergrund ist transparent sein muss oder kann weiß sein? (Nicht, dass ich die Antwort habe, sondern einfach zu versuchen). –
Ich aktualisierte die Frage @ azeós –