font-variant-east-asian
font-variant-east-asian 属性参数控制替代字形为东亚的脚本,如日文和中文的用法。
语法
font-variant-east-asian: normal; font-variant-east-asian: ruby; font-variant-east-asian: jis78; /* <east-asian-variant-values> */ font-variant-east-asian: jis83; /* <east-asian-variant-values> */ font-variant-east-asian: jis90; /* <east-asian-variant-values> */ font-variant-east-asian: jis04; /* <east-asian-variant-values> */ font-variant-east-asian: simplified; /* <east-asian-variant-values> */ font-variant-east-asian: traditional; /* <east-asian-variant-values> */ font-variant-east-asian: full-width; /* <east-asian-width-values> */ font-variant-east-asian: proportional-width; /* <east-asian-width-values> */ font-variant-east-asian: ruby full-width jis83;
值
值 | 描述 |
---|---|
normal | 此关键字会禁止的这种备用标志符号的使用。 |
ruby | 此关键字强制特殊标志符号用于拼音字符。因为这些是通常较小,字体创建者往往设计具体的形式,通常稍加粗以提高对比度。 |
<east-asian-variant-values> | 这些值激活特定标准中定义的数字。 |
<east-asian-width-values> | 这些值控制数字用于东亚语言字符的大小。 |
例子
HTML
<p class="normal">!</p>
CSS
p { font-variant-east-asian: ruby; }
执行结果
!