如何在Web Form Visual Studio 2017中添加自定义字体?



它是Visual Studio页面的屏幕截图

我正在尽力添加新的自定义字体,我尝试添加 n 个资源文件夹和字体文件夹的字体,但没有成功。

<style type="text/css">
@font-face{
font-family:"zekton rg";
src: url(zekton rg.ttf);
}
.auto-style1 {
width: 100%;
}
.auto-style2 {
text-align: center;
}
.auto-style3 {
text-align: center;
height: 33px;
}
.auto-style4 {
height: 33px;
}
.auto-style5 {
height: 39px;
}
#Reset1 {
text-align: left;
height: 35px;
width: 72px;
}
</style>

请帮忙....

这可能是因为您的字体尚未安装。

双击.ttf文件。 单击左上角的"安装"按钮。 安装字体,然后重试。

希望对您有所帮助!

<link href="https://fonts.googleapis.com/css?family=your font name:300,400,400i,600,700,800" rel="stylesheet">

在你的头标签中

和身体标签上的线下方

<body style="font-family: same font name as in url;">

最新更新