1

我有以下内容:

@font-mensch: 'menschmensch_bold', "wf_SegoeUI","Segoe UI","Segoe","Segoe WP", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
@font-face {
    font-family: 'menschmensch_bold';
    src: url('font/mensch-bold-wf-webfont.eot');
    src: url('font/mensch-bold-wf-webfont.eot?#iefix') format('embedded-opentype'),
      url('font/mensch-bold-wf-webfont.woff') format('woff'),
      url('font/mensch-bold-wf-webfont.ttf') format('truetype'),
      url('font/mensch-bold-wf-webfont.svg#menschmensch_bold') format('svg');
     font-weight: normal;
     font-style: normal;
}

@font-face {
    /* Ampersand fallback font */
    font-family: 'sans-serif';
    unicode-range: ~"U+270C";
}

正在应用自定义字体,但由于 Mensch 不支持 & 符号,因此我尝试有条件地将 sans-serif 应用于字体(如果它是 & 符号)。上面的代码不起作用 - 符号只是没有出现。我究竟做错了什么?

4

1 回答 1

-1

尝试使用

...
unicode-range: U+26;
...

高温高压

于 2013-08-17T19:25:01.067 回答