-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
944 lines (454 loc) · 30.1 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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>木南的個人網站 - MuNan's Personal Website | 人成各 今非昨 — 唐琬</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="">
<link rel="shortcut icon" href="/img/5cb23cd0-2f82-44dc-9671-0bbe928e324e.ico">
<link rel="stylesheet" href="/css/jquery.fancybox.min.css" />
<link rel="stylesheet" href="/css/style.css?v=undefined">
<script type="text/javascript">
// Data Center
var DC = {
reward: false,
lv: JSON.parse('{"enable":false,"app_id":null,"app_key":null,"icon":true}'),
v: JSON.parse('{"enable":false,"appid":"P6YMSmGYRiXAnXDJJseTQdjd-gzGzoHsz","appkey":"dQIRsCSKFyCU9GupulzVFNUO","notify":true,"verify":true,"placeholder":"Give me some sugers plz...","avatar":"wavatar"}'),
g: JSON.parse('{"enable":false,"lazy":true,"owner":"munanum","repo":"issues","oauth":{"client_id":"247de68ddbbfa47690cd","client_secret":"25c21da09d3f068ab0689510079ff4ef72792ec5"},"perPage":10}'),
d: JSON.parse('{"app_id":null}')
};
</script>
<script type="text/javascript">
window.lazyScripts=[];
</script>
<meta name="generator" content="Hexo 4.2.0"></head>
<body>
<div id="loading" class="active"></div>
<aside id="menu" class="">
<div class="inner flex-row-vertical">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
<i class="icon icon-lg icon-close"></i>
</a>
<div class="brand-wrap">
<img src="/img/b940cf6d-92e4-4ecf-bc32-590cbba0f93f.jpg" class="brand-bg">
<div class="brand">
<a href="/" class="avatar waves-effect waves-circle waves-light">
<img src="/img/6954c1c6-3b8b-4960-b87e-c0c834c15c8a.png">
</a>
<hgroup class="introduce">
<h5 class="nickname">木南</h5>
<a href="mailto:c08cf6b8@outlook.com" title="c08cf6b8@outlook.com" class="mail">
<span>c</span>
<span>0</span>
<span>8</span>
<span>c</span>
<span>f</span>
<span>6</span>
<span>b</span>
<span>8</span>
<span>@</span>
<span>o</span>
<span>u</span>
<span>t</span>
<span>l</span>
<span>o</span>
<span>o</span>
<span>k</span>
<span>.</span>
<span>c</span>
<span>o</span>
<span>m</span>
</a>
</hgroup>
<ul class="menu-link">
<li>
<a href="https://github.com/munanum" target="_blank">
<i class="icon icon-lg icon-github"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="scroll-wrap flex-col">
<ul class="nav">
<li class=" active">
<a href="/" >
<i class="icon icon-lg icon-home"></i>
主頁
</a>
</li>
<li class="">
<a href="/categories/%E9%9A%A8%E7%AD%86" >
<i class="icon icon-lg icon-th-list"></i>
分類
</a>
</li>
<li class="">
<a href="/tags/%E9%9A%A8%E7%AD%86" >
<i class="icon icon-lg icon-tags"></i>
標籤
</a>
</li>
<li class="">
<a href="/archives" >
<i class="icon icon-lg icon-archives"></i>
歸檔
</a>
</li>
</ul>
</div>
</div>
</aside>
<main id="main">
<header class="top-header" id="header">
<div class="flex-row clearfix">
<a href="javascript:;" class="header-icon pull-left waves-effect waves-circle waves-light on" id="menu-toggle">
<i class="icon icon-lg icon-navicon"></i>
</a>
<div class="flex-col header-title ellipsis">
<span>木南的個人網站 - MuNan's Personal Website</span>
<span> - </span>
<span class="header-description">人成各 今非昨 — 唐琬</span>
</div>
<a href="javascript:;" id="site_search_btn" class="header-icon pull-right waves-effect waves-circle waves-light">
<i class="icon icon-lg icon-search"></i>
</a>
</div>
</header>
<header class="content-header index-header">
<img src="/img/a057c731-d78c-499a-8233-8309e92a3e4c.png" class="header-bg">
<div class="container fade-scale">
<h1 class="title">木南的個人網站 - MuNan's Personal Website</h1>
<h5 class="subtitle">
人成各 今非昨 — 唐琬
</h5>
</div>
</header>
<div id="site_search">
<div class="search-title clearfix">
<span class="pull-left">
<i class="icon icon-lg icon-search"></i>
</span>
<input type="text" id="local-search-input" name="q" results="0" placeholder="Search my blog..." class="form-control pull-left"/>
<a href="javascript:;" class="close pull-right waves-effect waves-circle waves-light">
<i class="icon icon-lg icon-close"></i>
</a>
</div>
<div id="local-search-result"></div>
</div>
<div class="container body-wrap">
<ul class="post-list">
<li class="post-list-item fade">
<article id="post-202002200630"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2020/02/20/202002200630/">SQL</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2020-02-20 06:30:24" datetime="2020-02-19T22:30:24.000Z" itemprop="datePublished">2020-02-20</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%BE%8C%E7%AB%AF/">後端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%BE%8C%E7%AB%AF/%E6%95%B8%E6%93%9A%E5%BA%AB/">數據庫</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
SQL 是訪問和處理關系數據庫的計算機標準語言。
概述應用程序不需要自己管理數據,而是通過數據庫軟件提供的接口來讀寫數據。至於數據本身如何存儲到文件,那是數據庫軟件的事情,應用程序自己並不關心:
1234567891011┌──────────────┐│ application │└──────────────┘ ▲│ ││ read││write ...
<a href="/2020/02/20/202002200630/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/MySQL/" rel="tag">MySQL</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%95%B8%E6%93%9A%E5%BA%AB/" rel="tag">數據庫</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201802200830"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2018/08/22/201802200830/">使用 Node 和 OAuth2.0 構建一個簡單的 REST API</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2018-08-22 08:30:24" datetime="2018-08-22T00:30:24.000Z" itemprop="datePublished">2018-08-22</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/Node/">Node</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
JavaScript 在網絡上無處不在。基本上每個網頁都或多或少包含一些 JavaScript 代碼,即使沒有,你的瀏覽器或許也裝了一些拓展附件,這些拓展附件能夠將一部分 JavaScript 代碼註入網頁中。2018 年依舊如此。
JavaScript 也可以在瀏覽器之外使用,從托管網絡服務器到控製 RC 汽車或者運行一個成熟的操作系統。有些時候你想要兩臺服務器互相通信,無論是本地網絡還是...
<a href="/2018/08/22/201802200830/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/REST-API/" rel="tag">REST API</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201608282022"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/08/28/201608282022/">URL 重定向</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-08-28 20:22:55" datetime="2016-08-28T12:22:55.000Z" itemprop="datePublished">2016-08-28</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/HTTP/">HTTP</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/HTTP/%E9%87%8D%E5%AE%9A%E5%90%91/">重定向</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
前言在 Web 開發中,經常會出現重定向的情況,重定向指的是將一個網絡請求重新定個方向,向新的方向發起請求。常見的重定向有網頁重定向,訪問一個網頁時卻跳轉到另外一個網頁;也有域名重定向,向某個域名發起請求卻自動變成請求另外一個域名。
實現原理URL 重定向是由客戶端完成的(通常是瀏覽器),客戶端發出請求後,服務器做出響應,如果響應頭的狀態碼為 301 或者 302,此時響應頭中會多出一個 L...
<a href="/2016/08/28/201608282022/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/HTTP/" rel="tag">HTTP</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/URL/" rel="tag">URL</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E9%87%8D%E5%AE%9A%E5%90%91/" rel="tag">重定向</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201608060654"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/08/06/201608060654/">原生 JS 實現圖片懶加載</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-08-06 06:54:36" datetime="2016-08-05T22:54:36.000Z" itemprop="datePublished">2016-08-06</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/JavaScript/">JavaScript</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
圖片懶加載介紹什麽是懶加載?懶加載其實就是按需加載或者說是條件加載,是前端一種優化性能的方式。比如訪問一個頁面,裏面有很多圖片(也可以是視頻等其他資源)。如果這些圖片全部加載出來,不僅要在短時間內發出大量請求而且還要進行渲染,這是很消耗時間的。此外,在渲染過程中會阻塞瀏覽器繼續向下解析,影響用戶體驗。所以,最佳的模式是訪問一個頁面的時候當圖片出現在可視區域內的時候(或者距離可視區域一定距離的...
<a href="/2016/08/06/201608060654/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/JavaScript/" rel="tag">JavaScript</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%80%A7%E8%83%BD%E5%84%AA%E5%8C%96/" rel="tag">性能優化</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%87%B6%E5%8A%A0%E8%BC%89/" rel="tag">懶加載</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201608020650"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/08/02/201608020650/">常見「同源策略」問題解決方案</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-08-02 06:50:45" datetime="2016-08-01T22:50:45.000Z" itemprop="datePublished">2016-08-02</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/HTTP/">HTTP</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/HTTP/%E8%B7%A8%E5%9F%9F/">跨域</a></li></ul></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
前言「同源政策」(same-origin policy)是由 Netscape 公司引入瀏覽器的。其使得瀏覽器更加安全,現在所有瀏覽器都支持了這個策略。然而,安全的同時也使得開發過程中出現了一些麻煩。本文列出了一些常見的同源策略問題以及相對應的解決方案。
常見問題「同源」指的是兩個地址之間協議相同、域名相同、端口相同,只要有一個不相同就會出現問題。
目前,受到「同源政策」限製的有以下功能:
...
<a href="/2016/08/02/201608020650/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/HTTP/" rel="tag">HTTP</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%B7%A8%E5%9F%9F/" rel="tag">跨域</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201607200640"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/07/20/201607200640/">深入淺出 HTTP 協議(上)</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-07-20 06:40:35" datetime="2016-07-19T22:40:35.000Z" itemprop="datePublished">2016-07-20</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/Node/">Node</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/Node/%E7%88%AC%E8%9F%B2/">爬蟲</a></li></ul></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
前言無論大家是前端程序員還是後端程序員,相信大家對 HTTP 這個詞一定不陌生,在程序開發中它無處不在。所以,深入了解 HTTP 協議將會提高自己的編程質量以及提高前後端對接的效率。
HTTP 工作原理HTTP 協議簡介HTTP 協議是 Hyper Text Transfer Protocol(超文本傳輸協議)的縮寫,是用於從萬維網服務器傳輸超文本(例如 HTML 文件、圖片文件、視頻文件等...
<a href="/2016/07/20/201607200640/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/HTTP/" rel="tag">HTTP</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Node/" rel="tag">Node</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%88%AC%E8%9F%B2/" rel="tag">爬蟲</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201607060840"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/07/06/201607060840/">移動端適配(下)</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-07-06 08:40:33" datetime="2016-07-06T00:40:33.000Z" itemprop="datePublished">2016-07-06</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/CSS/">CSS</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
前言承接 移動端適配(上),這次主要寫「viewport」縮放適配方式。這是淘寶使用的方法,實現原理是將頁面放大 dpr(devicePixelRatio)倍,然後 viewport 設置為 1/dpr。例如 iphone6/7/8 的 dpr 為 2,則頁面整體放大 2 倍,1px(css 單位)在 iphone6/7/8 下默認顯示為 2px(物理像素)。將 viewport 設置為 1...
<a href="/2016/07/06/201607060840/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/viewport/" rel="tag">viewport</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201607020832"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/07/02/201607020832/">深入淺出 meta 標簽</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-07-02 08:32:54" datetime="2016-07-02T00:32:54.000Z" itemprop="datePublished">2016-07-02</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/HTML/">HTML</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
前言meta 標簽提供關於 html 文檔的元數據(元數據不會顯示在網頁上,但是對於機器是可讀的。),常用來描述一個 html 網頁的屬性(例如作者、網頁描述、關鍵詞等。)或者渲染方式等。meta 標簽有兩個屬性,分別是 http-equiv 屬性和 name 屬性,不同的屬性又有不同的屬性值,這些不同的屬性值就實現了網頁不同的功能。
name 屬性主要用於描述網頁,與之對應的屬性值為 co...
<a href="/2016/07/02/201607020832/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/meta/" rel="tag">meta</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201606300203"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/06/30/201606300203/">移動端適配(上)</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-06-30 02:03:13" datetime="2016-06-29T18:03:13.000Z" itemprop="datePublished">2016-06-30</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/CSS/">CSS</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
前言作為一名前端碼農(「工程師」這個稱號太高大上,我還用不起。)如果不會移動端適配就別說自己是搞前端的。畢竟 PC 獨霸天下的時代已經過去了,現在移動端這股浪潮誰也阻止不了。話不多說,下面是我個人總結的一些移動端適配的方法。
百分比百分比布局是比較早的適配方式,因為 CSS2.0 時代就已經支持這個方法。其作用可以使頁面隨著屏幕寬度(或者瀏覽器寬度)改變而自適應。使用時要註意高度設置百分比時...
<a href="/2016/06/30/201606300203/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/rem/" rel="tag">rem</a></li></ul>
</div>
</li>
<li class="post-list-item fade">
<article id="post-201606201932"
class="article-card article-type-post" itemprop="blogPost">
<h3 class="post-title re-title" itemprop="name">
<a class="post-title-link" href="/2016/06/20/201606201932/">學習 Markdown 語法</a>
</h3>
<div class="post-meta">
<time class="post-time" title="2016-06-20 19:32:28" datetime="2016-06-20T11:32:28.000Z" itemprop="datePublished">2016-06-20</time>
<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/">前端</a><ul class="article-category-list-child"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/%E5%89%8D%E7%AB%AF/Markdown/">Markdown</a></li></ul></li></ul>
</div>
<div class="post-content" id="post-content" itemprop="postContent">
這是一級標題這是二級標題這是三級標題這是四級標題這是五級標題這是六級標題一級標題二級標題這是加粗的文字這是傾斜的文字這是斜體加粗的文字這是加刪除線的文字
這是引用的內容
這是引用的內容
這是引用的內容
三個或者三個以上的 - 或者 * 都可以
鼠標移動到圖片上
...
<a href="/2016/06/20/201606201932/" class="post-more waves-effect waves-button">
More
</a>
</div>
</article>
<div class="post-footer">
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Markdown/" rel="tag">Markdown</a></li></ul>
</div>
</li>
</ul>
<nav id="page-nav">
<div class="inner">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="extend next" rel="next" href="/page/2/">下一頁</a>
</div>
</nav>
</div>
</main>
<footer class="footer ">
<div class="bottom">
<p>
<span>
木南 © 2016 - 2023
</span>
</p>
</div>
</footer>
<div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>
<div class="global-share" id="globalShare">
<ul class="reset share-icons">
<li>
<a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
<i class="icon icon-weixin"></i>
</a>
</li>
<li>
<a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://munan.wiki/" data-title=" Facebook">
<i class="icon icon-facebook"></i>
</a>
</li>
<li>
<a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=木南的個人網站 - MuNan's Personal Website&url=https://munan.wiki/&via=https://munan.wiki" data-title=" Twitter">
<i class="icon icon-twitter"></i>
</a>
</li>
<li>
<a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://munan.wiki/" data-title=" Google+">
<i class="icon icon-google-plus"></i>
</a>
</li>
</ul>
</div>
<div class="page-modal wx-share" id="wxShare">
<a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
<p>掃一掃,分享到微信</p>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAAAAAAZai4+AAABVUlEQVR42u3aQQ7CMAxE0d7/0mELKo7GE7dS4p8VQpC8LjCO7euS1/ha9/ej19G3yhYsWAexxnTdj9R3ULghHRaslqzosOgz0WHzAKGcBQsWLO9vWAkfsGDBqmLNw8Q8WMCCBUthKYmvftiruTwsWEew9KrO+utH6luwYG3OGsml7ODt/LMDLFjNWF5JN0tRmjR/QgksWG1Y+hbrl1LlDxsWLFjZK6jygzeLvLBgNWMpIz5648S7rEoPBgtWA5ZSwPXycS8JgAULln6MXnIyB4NgwWrM0i+lD44awILVnpVFZIu8iVQbFqyWLH2gx2urpNNrWLDasLxRAH0QwXwYWLCasarqwV5DdAkEC9ZxLC8oVJWNEoUkWLAasLK5drYhak5DwIIFa7lUZDY4YcGClQwQVWWm4rgFC9a2rJXi0UqDs/j6CgvWtqxsgus1Qb2BP1iwGrA+NeNGJcL1RrkAAAAASUVORK5CYII=" alt="微信分享二維碼">
</div>
<!-- main-js -->
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/plugins/fastclick.js?v=undefined"></script>
<script type="text/javascript" src="/js/plugins/ios-orientationchange-fix.js?v=undefined"></script>
<script type="text/javascript" src="/js/jquery.fancybox.min.js"></script>
<script type="text/javascript" src="/js/waves.min.js"></script>
<script type="text/javascript" src="/js/method.js?v=undefined"></script>
<script type="text/javascript" src="/js/blog.js?v=undefined"></script>
<!-- third-party -->
<script type="text/javascript" src="/js/plugins/local_search.js?v=undefined"></script>
<script type="text/javascript">
var search_path = "search.xml";
if (search_path.length === 0) {
search_path = "search.xml";
}
var path = "/" + search_path;
searchFunc(path, "local-search-input", "local-search-result");
</script>
<!-- <script async src="/js/busuanzi.pure.mini.js"></script> -->
<!-- mathjax config similar to math.stackexchange -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for (i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="/js/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
</body>
</html>