添加logo字体

This commit is contained in:
张梦南 2025-04-05 21:06:01 +08:00
parent 891a92a556
commit 0ff8fc158f
4 changed files with 15 additions and 2 deletions

View File

@ -25,4 +25,8 @@ ul {
a {
color: #20a53a
}
.logo {
font-family: 'Pacifico', cursive;
}

7
css/font.css Normal file
View File

@ -0,0 +1,7 @@
/* 引用本地字体 */
@font-face {
font-family: 'Pacifico';
src: url('../font/Pacifico.ttf') format('truetype'); /* 自定义 .ttf 字体 */
font-weight: normal;
font-style: normal;
}

BIN
font/Pacifico.ttf Normal file

Binary file not shown.

View File

@ -1,17 +1,19 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>DreamLife|HomePage</title>
<link rel="stylesheet" href="css/footer.css">
<link rel="stylesheet" href="css/body.css">
<link rel="stylesheet" href="css/chat.css">
<link rel="stylesheet" href="css/font.css">
</head>
<body>
<div class="container">
<h1>DreamLife</h1>
<h1 class="logo">DreamLife</h1>
<h3>这是我的网站首页,主页代码正在完善中</h3>
<ul>
<li>此网站将用于个人经历展示,个人技术分析</li>