如何在web窗体visual studio 2017中添加自定义字体?
问题描述:
Its a screenshot of the visual studio page如何在web窗体visual studio 2017中添加自定义字体?
我在尽我所能地添加新的自定义字体我试图添加字体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;">
+0
谢谢,但我已经来到了使用@ font-face的解决方案 –
我有双次点击并安装在字体文件夹,但仍问题仍然存在 –
您是否尝试过解压或再次下载文件?如果它的损坏。 –
是的,但问题仍然存在......你能告诉我这是什么意思,确保安装文件类型为.ttf的应用程序? –