-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
292 lines (167 loc) · 8.48 KB
/
index.html
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<script defer language="javascript" type="text/javascript" src="/js/bundle.min.11d62625e7495f8147fccf5d08f37bded574a50c4508c235cc666848567d99ab.js"></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href=/favicon.png>
<title itemprop="name"></title>
<meta property="og:title" content=ZgotmplZ />
<meta name="twitter:title" content=ZgotmplZ />
<meta itemprop="name" content=ZgotmplZ />
<meta name="application-name" content=ZgotmplZ />
<meta property="og:site_name" content="My New Hugo Site" />
<meta name="description" content="" />
<meta itemprop="description" content="" />
<meta property="og:description" content="" />
<meta name="twitter:description" content="" />
<base href="https://haronhu.github.io/" />
<link rel="canonical" href="https://haronhu.github.io/" itemprop="url" />
<meta name="url" content="https://haronhu.github.io/" />
<meta name="twitter:url" content="https://haronhu.github.io/" />
<meta property="og:url" content="https://haronhu.github.io/" />
<meta property="og:updated_time" content=15008-15-09T89:36:23+0800 />
<link rel="sitemap" type="application/xml" title="Sitemap" href='https://haronhu.github.io/sitemap.xml' />
<link href="https://haronhu.github.io/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Site" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow" />
<meta name="twitter:site" content="" />
<meta name="twitter:creator" content="" />
<meta property="fb:admins" content="" />
<meta name="apple-mobile-web-app-title" content="My New Hugo Site" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta property="og:type" content="website" />
<meta name="author" content="" />
<script defer type="application/ld+json">
{
{
"@context": "http://schema.org",
"@type": "Article",
"headline": "My New Hugo Site",
"author": {
"@type": "Person",
"name": ""
},
"datePublished": "2023-08-15",
"description": "",
"wordCount": 0 ,
"mainEntityOfPage": "True",
"dateModified": "2023-08-15",
"image": {
"@type": "imageObject",
"url": ""
},
"publisher": {
"@type": "Organization",
"name": "My New Hugo Site",
"logo": {
"@type": "imageObject",
"url": ""
}
}
}
}
</script>
<meta name="generator" content="Hugo 0.114.1">
<link type="text/css" rel="stylesheet" href="/css/bundle.min.178e339ccb9acabffeebf9adbb0bb23c1ec0b72a2a50edee18a5007d4d5a68aa.css">
<style>
body {
--sidebar-bg-color: #202020;
--sidebar-img-border-color: #515151;
--sidebar-p-color: #909090;
--sidebar-h1-color: #FFF;
--sidebar-a-color: #FFF;
--sidebar-socials-color: #FFF;
--text-color: #222;
--bkg-color: #FAF9F6;
--post-title-color: #303030;
--list-color: #5a5a5a;
--link-color: #268bd2;
--date-color: #515151;
--table-border-color: #E5E5E5;
--table-stripe-color: #F9F9F9;
--code-color: #bf616a;
--code-background-color: #E5E5E5;
--moon-sun-color: #FFF;
--moon-sun-background-color: #515151;
}
body.dark-theme {
--text-color: #eee;
--bkg-color: #121212;
--post-title-color: #DBE2E9;
--list-color: #9d9d9d;
--link-color: #268bd2;
--date-color: #9a9a9a;
--table-border-color: #515151;
--table-stripe-color: #202020;
--code-color: #ff7f7f;
--code-background-color: #393D47;
}
body {
background-color: var(--bkg-color);
}
</style>
</head>
<body class="">
<div class="wrapper">
<aside class="sidebar">
<div class="container sidebar-sticky">
<div class="light-dark" align="right">
<button class="btn-light-dark" title="Toggle light/dark mode">
<svg class="moon" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16">
<path fill="currentColor" d="M6 .278a.768.768 0 0 1 .08.858a7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277c.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316a.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71C0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/>
</svg>
<svg class="sun" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16">
<path fill="currentColor" d="M8 12a4 4 0 1 0 0-8a4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"/>
</svg>
</button>
</div>
<div class="sidebar-about">
<h1 class="brand">
</h1>
<p class="lead">
</p>
</div>
<nav>
<ul class="sidebar-nav">
</ul>
</nav>
<p class="footnote">
powered by <a target="_blank" href="https://gohugo.io">Hugo</a> | themed with <a target="_blank" href="https://github.com/lukeorth/poison">poison</a>
<br>
© 2023 My New Hugo Site. All rights reserved.
</p>
</div>
</aside>
<main class="content container">
<div class="posts">
<article class="post">
<div class="info">
<h1 class="post-title">
<a href="https://haronhu.github.io/posts/my-first-post/">My First Post</a>
</h1>
<time datetime="2023-08-15T21:09:36+0800" class="post-date">
August 15, 2023
</time>
</div>
今天通过青训营课程复习了一下html,感觉知识理解都有了一个大的提升,也掌握了新知识 ‘datalist’以及’dl’‘dt’‘dd’。
在课程中,我们复习了无序列表和有序列表,还有input的placeholder占位符,range、radio、text和date等类型。 cite是斜体标签;strong是加粗字体标签;blockquote是表示引用的标签。
datalist是放在input标签里的,可以给予用户快捷选择input内容的标签 用法如下
<input list="wajj" type="text"> <datalist id="wajj"> <option>给我青训营机会</option> <option>有许多好文章</option> </datalist> 而dl,dt,dd是起到的作用和制表符差不多,都是空出4个占位符。 此标签效果如下:
select和datalist不同的是select不是input类型的子标签,而是一个供选择的选择的文本框,不支持自己手动输入文本。 最后要记录的是前端语言的几大要求:
功能 美观 无障碍 安全 兼容 性能 用户体验 选择器 伪类选择器1 如图中第5行^=意思是选中href中以"#“开头的a标签
第11行$=意思是选中href中以”.jpg"结尾的a标签 伪类选择器2 伪类的定义:状态伪类、结构伪类等
状态伪类比如有标签所处不同状态不同css样式如:
link(默认状态下)、visited(访问过后的状态)、hover(鼠标移上去后)、active(鼠标摁下去后)四种状态
结构伪类:如first-child(第一个)、last-child(最后一个)
选择器组合 下面是一些css选择器样式, 除此之外如果想要同时选中多个标签可以用,隔开(即选择器组)
css颜色在这里不过阐述 字体(font-family) css中斜体是font-style: italic
css中字重(字的粗细)是font-weight 一些字体可以只有(400-normal)(700-bold)两种字重
line-height是行高(两行之间的距离加一行字体的高度)
</article>
</div>
</main>
</div>
</body>
</html>