|
发表于 2023-10-31 13:26:14
|
显示全部楼层
@font-face {
font-family: 'CustomFont'; /* 字体名称,可以自定义 */
src: url('path/to/your-font.woff') format('woff'); /* 字体文件路径和格式 */
}
body {
font-family: 'CustomFont', sans-serif; /* 使用自定义字体,如果不可用,则使用后备字体 */
}
可以使用这种方式来做,先把字体文件放到服务器上或者门户的资源文件中,然后再引用 |
|