@font-face - CSS | @font-face local
The@font-faceCSS[1]at-rule(en-US)[2]allowsauthorstospecifyonlinefontstodisplaytextontheirwebpages.Byallowingauthorstoprovidetheirownfonts,@font-faceeliminatestheneedtodependonthelimitednumberoffontsusershaveinstalledontheircomputers.The@font-faceat-rulemaybeusednotonlyatthetoplevelofaCSS,butalsoinsideanyCSSconditional-groupat-rule(en-US)[3].Experimental:這是一個實驗中的功能此功能在某些瀏覽器尚在開發中,請參考兼容表格[4]以得到不同瀏覽器用的前輟。@font-face{[font-family:
The @font-face CSS[1] at-rule (en-US)[2] allows authors to specify online fonts to display text on their web pages. By allowing authors to provide their own fonts, @font-face eliminates the need to depend on the limited number of fonts users have installed on their computers. The @font-face at-rule may be used not only at the top level of a CSS, but also inside any CSS conditional-group at-rule (en-US)[3].
Experimental: 這是一個實驗中的功能此功能在某些瀏覽器尚在開發中,請參考兼容表格[4]以得到不同瀏覽器用的前輟。
@font-face { [font-family: <family-name>;]? [src: [ <uri> [format(<string>#)]? | <font-face-name> ]#;]? [unicode-range: <urange>#;]? [font-variant: <font-variant>;]? [font-feature-settings: normal|<feature-tag-value>#;]? [font-stretch: <font-stretch>;]? [font-weight: <weight>]; [font-style: <style>]; } 參數值[5]<family-name>Specifies a font name that will be used as font face value for font properties.
<uri>...