首页 文章

单词中包含1个字符的CSS

提问于
浏览
-3

由于CSS,我输了20h来解决问题 . 请帮我 . 我希望字体为1个字符,例如:

How to Format<br>
How to Code<br>
How to Debug<br>
How to Test<br>
and more

我想在我的所有代码html中编写CSS字体系列字符'g ',不是所有代码,我不知道如何编写代码 . 请帮帮我,谢谢你的阅读

1 回答

  • 3

    如果你想改变 just the font ,对于 specific character ,这可以通过CSS使用unicode-range来实现:

    @font-face {
      font-family: 'FontForG';
      src: local('Times New Roman');
      unicode-range: U+67, U+47;
    }
    
    div {
      font-family: FontForG, Helvetica, sans-serif;	
    }
    
    <div>
    Three gray green greedy geese,
    Feeding on a weedy piece,
    The piece was weedy,
    And the geese were greedy,
    Three gray-green greedy geese.
    </div>

    unicode-range 非常有限,用于为不同语言或表情符号应用不同的字体 .

相关问题