在CSS中,我已为多种特定字符定义了自定义字体:
@font-face {
font-family: Sahel;
src: url(../font/Sahel-FD.ttf);
unicode-range: U+0600-06FF;
}
@font-face {
font-family: Sahel;
src: url(../font/Sahel-FD-Bold.ttf);
unicode-range: U+0600-06FF;
font-weight: bold;
}
我只想为此字体更改line-height
,但是在@font-face
规则中添加此属性无效。
我该怎么做?