diff --git a/SinkDark/publicStatic/css/base.css b/SinkDark/publicStatic/css/base.css index aa7e8f3..ac5e153 100644 --- a/SinkDark/publicStatic/css/base.css +++ b/SinkDark/publicStatic/css/base.css @@ -1,8 +1,16 @@ @charset "UTF-8"; +@font-face { + font-family: 'DuanNing'; /* 定义字体名称 */ + src: url('../fonts/段宁毛笔小楷.ttf') format('truetype'); /* 指定字体文件路径和格式 */ +} +@font-face { + font-family: 'SetoFont'; /* 定义字体名称 */ + src: url('../fonts/小濑字体.ttf') format('truetype'); /* 指定字体文件路径和格式 */ +} /* css */ * { margin: 0; padding: 0 } body { - font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif; /* 设置字体大小和字体族 */ + font: 15px "DuanNing", "Microsoft YaHei", Arial, Helvetica, sans-serif; /* 设置字体大小和字体族 */ background-image: url('../images/盐湖.png'); /* 设置背景图片 */ line-height: 1.5; /* 设置行高为字体大小的1.5倍 */ background-size: cover; /* 背景图片覆盖整个元素区域,可能会被裁剪以保持宽高比 */ diff --git a/SinkDark/publicStatic/fonts/小濑字体.ttf b/SinkDark/publicStatic/fonts/小濑字体.ttf new file mode 100644 index 0000000..da22959 Binary files /dev/null and b/SinkDark/publicStatic/fonts/小濑字体.ttf differ diff --git a/SinkDark/publicStatic/fonts/段宁毛笔小楷.ttf b/SinkDark/publicStatic/fonts/段宁毛笔小楷.ttf new file mode 100644 index 0000000..3f71ffe Binary files /dev/null and b/SinkDark/publicStatic/fonts/段宁毛笔小楷.ttf differ diff --git a/SinkDark/templates/base.html b/SinkDark/templates/base.html index 8954231..53cb41b 100644 --- a/SinkDark/templates/base.html +++ b/SinkDark/templates/base.html @@ -74,7 +74,15 @@