添加段宁、小濑字体

This commit is contained in:
跨越晨昏 2024-09-20 22:39:41 +08:00
parent f8530fce03
commit 232e3624cb
4 changed files with 18 additions and 2 deletions

View File

@ -1,8 +1,16 @@
@charset "UTF-8"; @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 */ /* css */
* { margin: 0; padding: 0 } * { margin: 0; padding: 0 }
body { body {
font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif; /* 设置字体大小和字体族 */ font: 15px "DuanNing", "Microsoft YaHei", Arial, Helvetica, sans-serif; /* 设置字体大小和字体族 */
background-image: url('../images/盐湖.png'); /* 设置背景图片 */ background-image: url('../images/盐湖.png'); /* 设置背景图片 */
line-height: 1.5; /* 设置行高为字体大小的1.5倍 */ line-height: 1.5; /* 设置行高为字体大小的1.5倍 */
background-size: cover; /* 背景图片覆盖整个元素区域,可能会被裁剪以保持宽高比 */ background-size: cover; /* 背景图片覆盖整个元素区域,可能会被裁剪以保持宽高比 */

Binary file not shown.

Binary file not shown.

View File

@ -74,7 +74,15 @@
<div class="m_box"> <div class="m_box">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
<div class="r_box">右侧内容</div> <div class="r_box">
<div class="tools">
<h2>小工具</h2>
<ul>
<a href="https://blog.csdn.net/" target="new">CSDN博客</a>
<a href="https://zhihu.com" target="new">知乎</a>
</ul>
</div>
</div>
{% endblock %} {% endblock %}
<a href="#" class="cd-top">Top</a> <a href="#" class="cd-top">Top</a>