-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10-2.html
More file actions
37 lines (37 loc) · 1 KB
/
10-2.html
File metadata and controls
37 lines (37 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>CSS3线性渐变——从底部到顶部渐变</title>
<style type="text/css" media="screen">
div {
width: 400px;
height: 150px;
border: 1px solid #666;
line-height: 150px;
text-align: center;
font-weight: 900;
font-size: 30px;
color: #fff;
margin: 10px auto;
}
.toBottom {
background-image:-webkit-linear-gradient(to bottom, orange, green);
background-image:linear-gradient(to bottom,orange,green);
}
.toBottom-deg{
background-image:-webkit-linear-gradient(180deg, orange, green);
background-image:linear-gradient(180deg,orange,green);
}
.toBottom-deg2{
background-image:-webkit-linear-gradient(-180deg, orange, green);
background-image:linear-gradient(-180deg,orange,green);
}
</style>
</head>
<body>
<div class="toBottom">使用关键词:to bottom</div>
<div class="toBottom-deg">使用角度:180 deg</div>
<div class="toBottom-deg2">使用角度:-180deg</div>
</body>
</html>