在CSS

时间:2016-06-22 15:01:53

标签: html css font-face

我从互联网上下载了一种字体,它有不同的样式(粗体,斜体等)。其中一种风格是Dashed,所以这些字母中断了。有没有办法在css中保持相同的姓氏,只是一种自定义的字体样式。就像你在cms中一样,你可以像粗体一样选择虚线选项。

@font-face{
font-family: 'custom-font';
src: url('../font.ttf')format("truetype);
font-weight: normal;
font-style: normal;
}

@font-face{
font-family: 'custom-font';
src: url('../font-dash.ttf')format("truetype);
font-weight: normal;
font-style: ???;
}

0 个答案:

没有答案