Skip to content

Commit 8ac1e5b

Browse files
committed
css实现弧形背景
1 parent ba4b7cc commit 8ac1e5b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>弧形背景</title>
6+
<style>
7+
.container {
8+
min-height: 100px;
9+
background-image: linear-gradient(to bottom, rgba(251,165,165,0.3)0%,rgba(251,165,165,0.1)100%);
10+
border-bottom-left-radius: 50% 40%;
11+
border-bottom-right-radius: 50% 40%;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<div class="container">...</div>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)