字体样式

样式一

原文链接:https://blog.csdn.net/qq_43592352/article/details/113666604

hcqFont hcqStyle1
hcqFont hcqStyle2
hcqStyle3
hcqStyle4
hcqStyle5
hcqStyle6
hcqStyle7
text-reflect-base

text

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<html>
<head>
</head>
<style>
body{
text-align: center;
}
.hcqFont{position:relative;letter-spacing:.07em;font-size:3em;font-weight:normal;margin:0 auto}
.hcqFont:before,.hcqFont:after{position:absolute;top:0;left:0;right:0}

.hcqStyle1{color:hsl(184,80%,25%);text-shadow:0 0 1px currentColor,/*highlight*/-1px -1px 1px hsl(184,80%,50%),0 -1px 1px hsl(184,80%,55%),1px -1px 1px hsl(184,80%,50%),/*light shadow*/1px 1px 1px hsl(184,80%,10%),0 1px 1px hsl(184,80%,10%),-1px 1px 1px hsl(184,80%,10%),/*outline*/-2px -2px 1px hsl(184,80%,15%),-1px -2px 1px hsl(184,80%,15%),0 -2px 1px hsl(184,80%,15%),1px -2px 1px hsl(184,80%,15%),2px -2px 1px hsl(184,80%,15%),2px -1px 1px hsl(184,80%,15%),2px 0 1px hsl(184,80%,15%),2px 1px 1px hsl(184,80%,15%),-2px 0 1px hsl(184,80%,15%),-2px -1px 1px hsl(184,80%,15%),-2px 1px 1px hsl(184,80%,15%),/*dark shadow*/2px 2px 2px hsl(184,80%,5%),1px 2px 2px hsl(184,80%,5%),0 2px 2px hsl(184,80%,5%),-1px 2px 2px hsl(184,80%,5%),-2px 2px 2px hsl(184,80%,5%)}
.hcqStyle2{display:inline-block;font-weight:bold;color:#def;text-shadow:0 0 1px currentColor,-1px -1px 1px #000,0 -1px 1px #000,1px -1px 1px #000,1px 0 1px #000,1px 1px 1px #000,0 1px 1px #000,-1px 1px 1px #000,-1px 0 1px #000;-webkit-filter:url(#diff1);filter:url(#diff1);/*background:#def;padding:0 .2em*/}
.hcqStyle3{background: #EEE url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAHklEQVQImWNkYGBgYGD4//8/A5wF5SBYyAr+//8PAPOCFO0Q2zq7AAAAAElFTkSuQmCC) repeat;text-shadow: 5px -5px black, 4px -4px white;font-weight: bold;-webkit-text-fill-color: transparent;-webkit-background-clip: text}
.hcqStyle4{color: transparent;-webkit-text-stroke: 1px red;letter-spacing: 0.04em;}
.hcqStyle5{color: transparent;background-color : blue;text-shadow : rgba(255,255,255,0.5) 0 5px 6px, rgba(255,255,255,0.2) 1px 3px 3px;-webkit-background-clip : text;}
.hcqStyle6{color: gold;letter-spacing: 0;text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135}
.hcqStyle7{font-family:cursive;text-shadow:6px 2px 2px #333;color:deeppink}
.text-reflect-base{color: palegreen;-webkit-box-reflect:below 10px;}
.text{
width: 300px;
height: 200px;
position: absolute;
left: 50%;
margin-left: -150px;
background-image: -webkit-linear-gradient(left,blue,#66ffff 10%,#cc00ff 20%,#CC00CC 30%, #CCCCFF 40%, #00FFFF 50%,#CCCCFF 60%,#CC00CC 70%,#CC00FF 80%,#66FFFF 90%,blue 100%);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-background-size: 200% 100%;
-webkit-animation: masked-animation 4s linear infinite;
font-size: 35px;
}
@keyframes masked-animation {
0% {
background-position: 0 0;
}
100% {
background-position: -100% 0;
}
}
</style>
<body>
<div class='hcqFont hcqStyle1'>hcqFont hcqStyle1</div>
<div class='hcqFont hcqStyle2'>hcqFont hcqStyle2</div>
<div class="hcqStyle3">hcqStyle3</div>
<div class="hcqStyle4">hcqStyle4</div>
<div class="hcqStyle5">hcqStyle5</div>
<div class="hcqStyle6">hcqStyle6</div>
<div class="hcqStyle7">hcqStyle7</div>
<div class='text-reflect-base'>text-reflect-base</div>
<div class="text"><p>text</p></div>
</body>
</html>
样式二

font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size
font-size

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<head>
<style>

.font1 {
padding: 0;
line-height: 1.5em;
font-family: "Times New Roman", Times, serif;
font-size: 14px;
color: #000000;
background: #f2e7ca;
}

.font2 {
background: #f2e7ca;
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
line-height: 1em;
color: #4e4e4e;
min-width: 920px;
border-top: 10pxsolid #0c0e0e
}

.font3 {
background: #f2e7ca;
font-family: Arial, Helvetica, sans-serif;
font-size: 1em;
vertical-align: middle;
font-weight: normal
}

.font4 {
padding: 0px;
background-color: #E7EAEB;
font-family: "微软雅黑", "黑体", "宋体";
font-size: 12px;
}

.font5 {
background: #f2e7ca;
font: .8emArial, Tahoma, Verdana;
color: #777;
}

.font6 {
background: #f2e7ca;
width: auto;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
color: #999999;
line-height: 25px;
letter-spacing: 1px
}

.font7 {
background: #f2e7ca;
width: auto;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
color: #5f5f5f;
line-height: 35px;
text-transform: uppercase
}

.font8 {
background: #e1e5e8;
font-family: "Georgia", Tahoma, Sans-Serif;
font-size: 12px;
line-height: 18px;
color: #888;
}

.font9 {
background: #f2e7ca;
color: #317400;
font: 18px/14pxGeorgia, "Times New Roman", Times, serif;
}

.font10 {
height: 20px;
background: #f2e7ca;
color: #01699F;
font: 13px/20pxGeorgia, "Times New Roman", Times, serif;
text-decoration: none;
}

.font11 {
padding: 0;
line-height: 1.5em;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #33322e;
background: #f2e7ca;
}

.font12 {
padding: 0;
line-height: 1.5em;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
color: #6f6f6f;
background: #f2e7ca;
}

.font13 {
padding: 0;
line-height: 1.5em;
font-family: Verdana, Geneva, sans-serif;
font-size: 11px;
color: #ffffff;
background: #005b7f;
}

.font14 {
padding: 0;
line-height: 1.7em;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
background: #f2e7ca;
}

.font15 {
padding: 0;
line-height: 1.7em;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
color: #707b84;
background: #3e464d;
}

.font16 {
padding: 0;
line-height: 1.7em;
letter-spacing: 1px;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #333;
background: #f2e7ca;
}

.font17 {
padding: 0;
line-height: 1.7em;
letter-spacing: 1px;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #333;
background: #f2e7ca;
}

.font18 {
background: #f2e7ca;
padding: 0;
font-family: arial, sans-serif;
font-size: 12px;
margin: 0pxautoautoauto;
color: #36322b;
}

.font19 {
padding: 0px;
background: #f2e7ca;
color: #6B6854;
font: 14px/18px"Trebuchet MS", Arial, Helvetica, sans-serif;
}

.font20 {
background: #f2e7ca;
font-family: Georgia;
font-family: Arial;
}
</style>
</head>

<body>
<div class="font1">font-size</div>
<div class="font2">font-size</div>
<div class="font3">font-size</div>
<div class="font4">font-size</div>
<div class="font5">font-size</div>
<div class="font6">font-size</div>
<div class="font7">font-size</div>
<div class="font8">font-size</div>
<div class="font9">font-size</div>
<div class="font10">font-size</div>
<div class="font11">font-size</div>
<div class="font12">font-size</div>
<div class="font13">font-size</div>
<div class="font14">font-size</div>
<div class="font15">font-size</div>
<div class="font16">font-size</div>
<div class="font17">font-size</div>
<div class="font18">font-size</div>
<div class="font19">font-size</div>
<div class="font20">font-size</div>
</body>