# 中文/英文 使用不同字體 ###### tags: `實作 Style` ``` /* 讓 html 底下的元素都套用此 style */ html * { font-family: MyCustomFont !important; font-size: 17px; } /* 中文用微軟正黑 */ @font-face { font-family: MyCustomFont; src: local("Heiti TC"), local("微軟正黑體"), local("Microsoft JhengHei"); unicode-range: U+4E00-9FFF; } /* 英文用 Segoe UI */ @font-face { font-family: MyCustomFont; src: local(Helvetica), local(Segoe UI); unicode-range: U+00-024F; } ``` [參考-CSS設定中英文不同的字體](https://wcc723.github.io/sass/2014/02/21/font-code-range/) [參考-利用 CSS 分別設定中文字、英數、注音、假名的字體:使用 CSS3 @font-face](https://blog.yorkxin.org/2012/06/17/assign-fonts-for-specific-characters.html)