diff --git a/css/body.css b/css/body.css index 7ec8bfa..a04685c 100644 --- a/css/body.css +++ b/css/body.css @@ -25,4 +25,8 @@ ul { a { color: #20a53a +} + +.logo { + font-family: 'Pacifico', cursive; } \ No newline at end of file diff --git a/css/font.css b/css/font.css new file mode 100644 index 0000000..8d26c7d --- /dev/null +++ b/css/font.css @@ -0,0 +1,7 @@ +/* 引用本地字体 */ +@font-face { + font-family: 'Pacifico'; + src: url('../font/Pacifico.ttf') format('truetype'); /* 自定义 .ttf 字体 */ + font-weight: normal; + font-style: normal; +} \ No newline at end of file diff --git a/font/Pacifico.ttf b/font/Pacifico.ttf new file mode 100644 index 0000000..122e451 Binary files /dev/null and b/font/Pacifico.ttf differ diff --git a/index.html b/index.html index fd4c3eb..f441e21 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,19 @@ - + + DreamLife|HomePage +
-

DreamLife

+

DreamLife

这是我的网站首页,主页代码正在完善中