Skip to content

Commit 32d2e90

Browse files
committed
css实现弧形尾箭头
1 parent 5b4b269 commit 32d2e90

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>弧形尾箭头</title>
8+
<style>
9+
.curvedarrow {
10+
position: relative;
11+
width: 0;
12+
border-top: 90px solid transparent;
13+
border-right: 90px solid red;
14+
transform: rotate(10deg) translateX(100%);
15+
}
16+
.curvedarrow::after {
17+
width: 120px;
18+
height: 120px;
19+
content: "";
20+
position: absolute;
21+
border: 0px solid transparent;
22+
border-top: 30px solid red;
23+
border-radius: 200px 0 0 0;
24+
top: -110px;
25+
left: -90px;
26+
transform: rotate(45deg);
27+
}
28+
</style>
29+
</head>
30+
<body>
31+
<div class="curvedarrow"></div>
32+
</body>
33+
</html>

0 commit comments

Comments
 (0)