Appearance
css
/* 声明某些个别地方会用到的特殊字体 */
@font-face {
font-family: "XXX BOLD";
src: url("/fonts/XXX BOLD.TTF") format("truetype");
font-weight: 700;
}
/* 声明通用字体 */
@font-face {
font-family: 'PingFang';
src: url("/fonts/PINGFANG REGULAR.TTF") format('truetype');
font-weight: 400;
}
/* 声明通用字体 */
@font-face {
font-family: 'PingFang';
src: url('/fonts/PINGFANG MEDIUM.TTF') format('truetype');
font-weight: 500;
}
/* 声明通用字体 */
@font-face {
font-family: 'PingFang';
src: url('/fonts/PINGFANG SEMIBOLD.TTF') format('truetype');
font-weight: 600;
}
/* 声明通用字体 */
@font-face {
font-family: 'PingFang';
src: url('/fonts/PINGFANG BOLD.TTF') format('truetype');
font-weight: 700;
}
/* 使用字体 */
body {
font-family: 'PingFang', sans-serif;
font-weight: 400;
}