{"id":195,"date":"2019-03-06T07:32:09","date_gmt":"2019-03-06T07:32:09","guid":{"rendered":"http:\/\/www.uihacker.com\/?p=195"},"modified":"2019-03-06T07:32:09","modified_gmt":"2019-03-06T07:32:09","slug":"css-font-family","status":"publish","type":"post","link":"https:\/\/uidora.com\/?p=195","title":{"rendered":"\u8bbe\u8ba1\u5e08\u522b\u62c5\u5fc3\uff0c\u5fae\u8f6f\u96c5\u9ed1\u8fd9\u6837\u4f7f\u7528\u4e0d\u4fb5\u6743"},"content":{"rendered":"<figure class=\"top_img_none\"><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-0.jpg\"\/><\/figure>\n<p>\u8fd9\u51e0\u5929\u8bbe\u8ba1\u5708\u90fd\u88ab\u4e00\u6761\u5b57\u4f53\u4fb5\u6743\u6d88\u606f\u5237\u5c4f\uff0c\u4e00\u516c\u53f8\u5728\u6ca1\u6709\u83b7\u5f97\u5b57\u4f53\u7248\u6743\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u5fae\u8f6f\u96c5\u9ed1\u505a\u5370\u5237\u54c1\uff0c\u6837\u7a3f\u5370\u5237\u5382\u5370\u4e865000\u4e07\u5f20\u5df2\u7ecf\u5168\u56fd\u5546\u7528\uff0c\u516c\u53f8\u635f\u59312860\u4e07\uff0c\u88c1\u545842\u4eba\uff0c\u542b8\u4e2a\u4e3b\u7ba1\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-1.jpg\"\/><\/figure>\n<p>\u73b0\u5728\u5404\u4f4d\u8bbe\u8ba1\u5e08\u90fd\u77e5\u9053\uff0c\u5fae\u8f6f\u96c5\u9ed1\u7248\u6743\u662f\u5c5e\u4e8e\u65b9\u6b63\u7684\uff0c\u5e76\u4e0d\u80fd\u514d\u8d39\u4f7f\u7528\uff01\u5728\u5927\u5bb6\u60ca\u53f9\u8d54\u507f\u91d1\u989d\u7684\u65f6\u5019\uff0c\u65b9\u6b63\u5b98\u65b9\u51fa\u6765\u8f9f\u8c23\uff1a<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-2.jpg\"\/><\/figure>\n<p>\u8fd9\u6b21\u4e8b\u4ef6\uff0c\u65b9\u6b63\u5b57\u4f53\u7ed9\u6211\u4eec\u95f4\u63a5\u5730\u4e0a\u4e86\u4e00\u8bfe\uff1a\u60f3\u5b89\u5168\u4f7f\u7528\u6211\u4eec\u7684\u5b57\u4f53\uff1f\u4e56\u4e56\u4ed8\u8d39\u5427\u3002\u540c\u65f6\u8fd8\u544a\u8bc9\u90a3\u4e9b\u6ca1\u6709\u4e70\u8fc7\u7248\u6743\u7684\u516c\u53f8\uff1a\u8be5\u4ea4\u4fdd\u62a4\u8d39\u4e86\u3002\u76ee\u524d\u4e8b\u4ef6\u5df2\u5728\u767e\u5ea6\u70ed\u70b9\u641c\u7d22\u6392\u540d\u7b2c\u4e09\uff0c\u4e5f\u8ba9\u4e2d\u56fd\u5f88\u591a\u975e\u8bbe\u8ba1\u884c\u4e1a\u4eba\u5458\u4e86\u89e3\u4e86\u65b9\u6b63\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-3.jpg\"\/><\/figure>\n<p>\u4e0d\u8fc7\u5728\u5927\u5bb6\u90fd\u5728\u805a\u7126\u65b0\u95fb\u672c\u8eab\u7684\u65f6\u5019\uff0c\u6709\u6ca1\u6709\u60f3\u8fc7\uff0c\u4ec0\u4e48\u6837\u7684\u5b57\u4f53\u884c\u4e3a\u4f1a\u53d7\u5230\u4fb5\u6743\u5462\uff1f<\/p>\n<p>\u5728\u8bbe\u8ba1\u884c\u4e1a\u4e2d\uff0c\u5e38\u89c1\u7684\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\u4fb5\u6743\u4e3b\u8981\u8868\u73b0\u5728\u7ebf\u4e0a\u7684banner\u3001\u5e7f\u544a\u3001\u9875\u9762\u3001\u7535\u5f71\u7b49\uff0c\u7ebf\u4e0b\u7684\u5370\u5237\u54c1\u3001\u6237\u5916\u5e7f\u544a\u3001\u4e66\u7c4d\u7b49\u3002\u5404\u4f4d\u8bbe\u8ba1\u5e08\u5bf9\u8fd9\u4e9b\u90fd\u975e\u5e38\u6e05\u695a\uff1a\u65e0\u7248\u6743\uff0c\u4e0d\u53ef\u5546\u7528\u3002<\/p>\n<h2>UI\u524d\u7aef\u548c\u5fae\u8f6f\u96c5\u9ed1<\/h2>\n<p>\u4f46\u662f\u5728UI\u8bbe\u8ba1\u8fd9\u5757\uff0c\u6211\u4eec\u5728\u7535\u8111\u7f51\u9875\u4e2d\u663e\u793a\u7684\u5fae\u8f6f\u96c5\u9ed1\u6709\u7248\u6743\u5417\uff1f\u516c\u53f8\u5b98\u7f51\u663e\u793a\u7684\u6587\u7ae0\u5b57\u4f53\u90fd\u662f\u5fae\u8f6f\u96c5\u9ed1\uff0c\u8fd9\u6837\u4f1a\u4fb5\u6743\u5417\uff1f\u6211\u4eec\u518d\u56de\u987e\u4e0b\u5fae\u8f6f\u96c5\u9ed1\u7684\u5386\u53f2\u3002<\/p>\n<blockquote>\n<p>\u201c\u5fae\u8f6f\u96c5\u9ed1\u201d\u5b57\u4f53\u662f\u201c\u5317\u5927\u65b9\u6b63\u7535\u5b50\u6709\u9650\u516c\u53f8\u201d\u8bbe\u8ba1\u5f00\u53d1\u7684\u5b57\u4f53\u4f5c\u54c1\u3002\u8be5\u5b57\u4f53\u4e0e\u8457\u540d\u7684\u201c\u65b9\u6b63\u5170\u4ead\u9ed1\u7cfb\u5217\u5b57\u4f53\u201d\uff08\u8be5\u7cfb\u5217\u5b57\u4f53\u5171\u6709\u5341\u4e00\u4e2a\u4e0d\u540c\u7c97\u7ec6\u7248\u672c\uff0c\u5171\u5341\u4e00\u6b3e\u5b57\u4f53\uff09\u7cfb\u51fa\u540c\u6e90\uff0c\u524d\u8005\u9488\u5bf9\u5c4f\u5e55\u663e\u793a\uff0c\u540e\u8005\u9488\u5bf9\u5370\u5237\u7528\u3002\u65b9\u6b63\u516c\u53f8\u62e5\u6709\u201c\u65b9\u6b63\u5170\u4ead\u9ed1\u7cfb\u5217\u5b57\u4f53\u201d\u7684\u5168\u90e8\u7248\u6743\u3002\u4f46\u5fae\u8f6f\u96c5\u9ed1\u7684\u7248\u6743\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\uff0c\u5728Windows\u7cfb\u7edf\u7684\u5185\u5d4c\u4f7f\u7528\uff0c\u5305\u62ec\u5c4f\u5e55\u8f93\u51fa\u548c\u4e2a\u4eba\u4f7f\u7528\u4e3a\u76ee\u7684\u7684\u6253\u5370\uff0c\u8fd9\u90e8\u5206\u5fae\u8f6f\u5df2\u7ecf\u5411\u65b9\u6b63\u652f\u4ed8\u4e86\u7248\u6743\u6388\u6743\u8d39\u7528\uff0c\u6240\u6709\u6b63\u7248Windows\u7528\u6237\u5747\u53ef\u653e\u5fc3\u4f7f\u7528\u3002\u4f46\u662f\u4ee5\u5546\u4e1a\u53d1\u5e03\u4e3a\u76ee\u7684\u7684\u5fae\u8f6f\u96c5\u9ed1\u7248\u6743\uff0c\u4ecd\u7531\u5317\u5927\u65b9\u6b63\u4fdd\u7559\u3002<\/p>\n<p>\u5fae\u8f6f\u516c\u53f8\u5728\u5f00\u53d1\u65b0\u4e00\u4ee3\u64cd\u4f5c\u7cfb\u7edf\u65f6\uff0c\u4e3a\u4e86\u6539\u5584\u5c4f\u5e55\u5b57\u4f53\u7684\u89c6\u89c9\u6548\u679c\uff0c\u59d4\u6258\u65b9\u6b63\u516c\u53f8\u8bbe\u8ba1\u4e24\u6b3e\u5b57\u4f53\u3002\u5fae\u8f6f\u516c\u53f8\u5c06\u6b64\u4e24\u6b3e\u5b57\u4f53\u547d\u540d\u4e3a\u201c\u5fae\u8f6f\u96c5\u9ed1\u201d\u548c\u201c\u5fae\u8f6f\u96c5\u9ed1 Bold\u201d\u3002<\/p>\n<\/blockquote>\n<p>\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a\u5173\u952e\u8bcd\u201c\u5c4f\u5e55\u8f93\u51fa\u201d\uff0c\u5373\u7535\u8111\u5c4f\u5e55\u4e0a\u663e\u793a\u548c\u6211\u4eec\u5173\u7cfb\u6700\u5927\u3002\u8bbe\u8ba1\u5e08\u8bbe\u8ba1\u5b8c\u7f51\u9875\u4e4b\u540e\uff0c\u524d\u7aef\u9700\u8981\u8fdb\u884c\u4ee3\u7801\u5236\u4f5c\uff0c\u8fd9\u65f6\u5019\u4f7f\u7528\u7684\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\uff0c\u5176\u5b9e\u5c31\u662f\u5c5e\u4e8e\u5c4f\u5e55\u8f93\u51fa\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-4.jpg\"\/><\/figure>\n<p>\u5982\u679c\u8981\u6df1\u5165\u641e\u6e05\u695a\u8fd9\u4e2a\uff0c\u6211\u4eec\u5c31\u8981\u4e86\u89e3\u7f51\u9875\u4e2d\u662f\u5982\u4f55\u663e\u793a\u5b57\u4f53\u7684\u3002\u524d\u7aef\u7f51\u9875\u5b57\u4f53\u7684\u5b9a\u4e49\u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u5f0f\uff1afont-family\u548c@font-face\u3002\u5173\u4e8e\u8fd9\u4e9b\u524d\u7aef\u57fa\u7840\u77e5\u8bc6\uff0c\u5404\u4f4dUI\u8bbe\u8ba1\u5e08\u5fc5\u987b\u8981\u4e86\u89e3\u4e0b\u3002<\/p>\n<h2>font-family<\/h2>\n<p>font-family\u5c5e\u4e8e\u524d\u7aefcss\u5c5e\u6027\u4e2d\u6700\u57fa\u7840\u7684\u4e00\u4e2a\u5c5e\u6027\uff0c\u7528\u6765\u5b9a\u4e49\u5b57\u4f53\u540d\u79f0\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u6bd4\u8f83\u5178\u578b\u7684\u4f8b\u5b50\u3002<\/p>\n<p><code>font-family: Helvetica, &#39;&#39;PingFangSC&#39;&#39;, &#39;Microsoft Yahei&#39;, &#39;\u5fae\u8f6f\u96c5\u9ed1&#39;, Arial, sans-serif;<\/code><\/p>\n<p>font-family\u89c4\u5b9a\u5143\u7d20\u7684\u5b57\u4f53\u7cfb\u5217\uff0c\u53ef\u4ee5\u628a\u591a\u4e2a\u5b57\u4f53\u540d\u79f0\u4f5c\u4e3a\u4e00\u4e2a\u201c\u56de\u9000\u201d\u7cfb\u7edf\u6765\u4fdd\u5b58\u3002\u5982\u679c\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u7b2c\u4e00\u4e2a\u5b57\u4f53\uff0c\u5219\u4f1a\u5c1d\u8bd5\u4e0b\u4e00\u4e2a\u3002<\/p>\n<p>\u5728\u5b9e\u9645\u7684\u5de5\u4f5c\u4e2d\uff0c\u7528\u6237\u7684\u7535\u8111\u4e00\u822c\u662fPC\u548cMac\uff0c\u4f46\u662f\u8fd9\u4e24\u4e2a\u5e73\u53f0\u7684\u5c4f\u5e55\u6750\u8d28\u3001\u6e32\u67d3\u65b9\u5f0f\u90fd\u4e0d\u4e00\u6837\uff0c\u6240\u4ee5\u4f7f\u7528\u7684\u9ed8\u8ba4\u5b57\u4f53\u4e5f\u662f\u4e0d\u4e00\u6837\u7684\u3002PC\u9ed8\u8ba4\u4f7f\u7528\u5fae\u8f6f\u96c5\u9ed1\uff0c\u800cMac\u9ed8\u8ba4\u4f7f\u7528\u82f9\u65b9\u3002<\/p>\n<p>\u5f53\u6211\u4eec\u6253\u5f00\u4e00\u4e2a\u7f51\u7ad9\uff0c\u6d4f\u89c8\u5668\u4f1a\u8bfb\u53d6font-family\u4e2d\u7684\u5b57\u4f53\u540d\u79f0\uff0c\u5e76\u53bb\u68c0\u7d22\u7528\u6237\u7535\u8111\u7cfb\u7edf\u4e2d\u7684\u5b57\u4f53\uff0c\u5982\u679c\u6709\u7684\u8bdd\u5c31\u663e\u793a\uff0c\u6ca1\u6709\u7684\u8bdd\u68c0\u7d22\u4e0b\u4e00\u4e2a\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-5.jpg\"\/><\/figure>\n<p>\u6240\u4ee5\uff0c\u867d\u7136\u524d\u7aef\u4ee3\u7801\u4e2d\u5199\u4e86\u5fae\u8f6f\u96c5\u9ed1\uff0c\u4f46\u4ec5\u4ec5\u662f\u4e00\u79cd\u8c03\u7528\u65b9\u6cd5\uff0c\u4f60\u7684\u7535\u8111\u4e2d\u6709\u5c31\u663e\u793a\uff0c\u6ca1\u6709\u5c31\u663e\u793a\u5176\u4ed6\u5b57\u4f53\uff0c\u548c\u7248\u6743\u662f\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\u7684\u3002\u56e0\u4e3a\u5b83\u4ec5\u4ec5\u662f\u8c03\u7528\u4e86\u7ec8\u7aef\u7528\u6237\u81ea\u8eab\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b58\u5728\u7684\u5b57\u4f53\u7528\u6765\u5c4f\u5e55\u8f93\u51fa\u663e\u793a\uff0c\u8fd9\u4e0d\u9700\u8981\u4efb\u4f55\u989d\u5916\u7684\u6388\u6743\u8bb8\u53ef\u3002<\/p>\n<p>\u4ee5\u540e\u524d\u7aef\u518d\u95ee\u4f60\u5b57\u4f53\u5982\u4f55\u4f7f\u7528\uff0c\u5c31\u53ef\u4ee5\u8bf4\u6839\u636eMac\u548cPC\u5e73\u53f0\u4e0d\u4e00\u6837\uff0c\u8c03\u7528\u4e0d\u540c\u7684\u5b57\u4f53\u4ee5\u4fbf\u5728\u5bf9\u5e94\u5e73\u53f0\u663e\u793a\u6700\u597d\u7684\u6548\u679c\u3002<\/p>\n<p>\u4f46\u662f\u6709\u4e2a\u7279\u4f8b\uff0c\u5982\u679c\u628aPC\u5b98\u7f51\u4e2d\u67d0\u4e2a\u542b\u6709\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\u7684\u9875\u9762\u622a\u56fe\uff0c\u5f53\u6210\u5546\u7528\u5ba3\u4f20\u56fe\uff0c\u90a3\u4e48\u8fd9\u5176\u5b9e\u5c31\u5c5e\u4e8e\u4fb5\u6743\u4e86\uff0c\u65b9\u6b63\u662f\u6709\u7406\u7531\u544a\u7684\u3002<\/p>\n<h2>@font-face<\/h2>\n<p>@font-face\u5c5e\u4e8ecss\u4e2d\u53e6\u4e00\u4e2a\u5b57\u4f53\u8c03\u7528\u65b9\u6cd5\u3002\u548cfont-family\u9ed8\u8ba4\u8c03\u7528\u7535\u8111\u5b57\u4f53\u4e0d\u540c\uff0c@font-face\u662f\u628a\u81ea\u5df1\u5b9a\u4e49\u7684Web\u5b57\u4f53\u5d4c\u5165\u5230\u7f51\u9875\u4e2d\u3002<\/p>\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u4f8b\u5982 &#39;Microsoft Yahei&#39;, Arial, sans-serif\u7b49\u5b57\u4f53\u90fd\u5c5e\u4e8e\u5b89\u5168\u5b57\u4f53\uff0c\u5373\u6b63\u5e38\u7535\u8111\u90fd\u4f1a\u9ed8\u8ba4\u5b89\u88c5\u7684\uff0c\u6240\u4ee5\u524d\u7aef\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528\u3002<\/p>\n<p>\u4f46\u662f\u5982\u679c\u7f51\u9875\u9700\u8981\u4f7f\u7528\u5230\u7279\u6b8a\u7684\u5b57\u4f53\uff0c\u5e76\u4e14\u4e0d\u60f3\u7528\u56fe\u7247\u4ee3\u66ff\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528@font-face\u65b9\u6cd5\u3002\u6bd4\u5982\u4e0b\u9762\u7684\u7ed3\u6784\u3002<\/p>\n<p><code>@font-face {<\/code><\/p>\n<p><code>&nbsp;&nbsp;&nbsp;font-family: &lt;YourWebFontName&gt;;<\/code><\/p>\n<p><code>&nbsp;&nbsp;&nbsp;src: &lt;source&gt; [&lt;format&gt;][,&lt;source&gt; [&lt;format&gt;]]*;<\/code><\/p>\n<p><code>&nbsp;&nbsp;&nbsp;[font-weight: &lt;weight&gt;];<\/code><\/p>\n<p><code>&nbsp;&nbsp;&nbsp;[font-style: &lt;style&gt;];<\/code><\/p>\n<p><code>&nbsp;}<\/code><\/p>\n<p>font-family\u8868\u793a\u81ea\u5b9a\u4e49\u7684\u5b57\u4f53\u540d\u79f0\u3002<\/p>\n<p>src\u8868\u793a\u81ea\u5b9a\u4e49\u7684\u5b57\u4f53\u7684\u5b58\u653e\u8def\u5f84\u3002<\/p>\n<p>font-weight\u548cfont-style\u5c5e\u4e8ecss\u5b57\u4f53\u4e2d\u7684\u4e24\u4e2a\u57fa\u672c\u5c5e\u6027\uff0c\u5206\u522b\u4ee3\u8868\u52a0\u7c97\u548c\u5b57\u4f53\u6837\u5f0f\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-7.jpg\"\/><\/figure>\n<p>\u6240\u4ee5\uff0c\u65e2\u7136\u8981\u8c03\u7528\u5b57\u4f53\u6587\u4ef6\u4e86\uff0c\u90a3\u4e48\u5982\u679c\u6211\u4eec\u4f7f\u7528\u4e86\u5fae\u8f6f\u96c5\u9ed1\uff0c\u5176\u5b9e\u5c31\u5c5e\u4e8e\u4fb5\u6743\u3002\u56e0\u4e3a\u4f60\u8981\u628a\u5fae\u8f6f\u96c5\u9ed1\u4e0b\u8f7d\u540e\u653e\u5165\u5230\u81ea\u5df1\u670d\u52a1\u5668\u4e2d\u4f7f\u7528\uff0c\u8fd9\u4e2a\u884c\u4e3a\u5728\u65b9\u6b63\u7684\u4fb5\u6743\u884c\u4e3a\u63cf\u8ff0\u4e2d\u6709\u4ecb\u7ecd\uff1a<\/p>\n<blockquote>\n<p>\u5728\u672a\u83b7\u5f97\u7248\u6743\u4eba\u4e66\u9762\u6388\u6743\u7684\u60c5\u51b5\u4e0b\uff0c\u4e0b\u5217\u4f7f\u7528\u65b9\u5f0f\u90fd\u662f\u4fb5\u6743\u884c\u4e3a\uff1a<\/p>\n<p>a\u3001\u5c06\u201c\u5fae\u8f6f\u96c5\u9ed1\u5b57\u5e93\u201d\u4ece Windows \u7cfb\u7edf\u4e2d\u590d\u5236\u51fa\u6765\uff0c\u5b89\u88c5\u5230\u82f9\u679c\u673a\u6216\u5176\u5b83\u7cfb\u7edf\u4e2d\u4f7f\u7528\uff1b<\/p>\n<p>b\u3001\u628a\u201c\u5fae\u8f6f\u96c5\u9ed1\u5b57\u5e93\u201d\u4f5c\u4e3a\u8bbe\u8ba1\u5143\u7d20\uff0c\u5c06\u5176\u4e2d\u7684\u5b57\u7b26\u4ee5\u56fe\u5f62\u7684\u5f62\u5f0f\u5e94\u7528\u5230\u8bbe\u8ba1\u6848\u4e2d\u5411\u516c\u4f17\u4f5c\u5982\u4e0b\u5f62\u5f0f\uff08\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff09\u7684\u53d1\u5e03\uff1a\u5c06\u5b57\u5e93\u5b57\u4f53\u76f4\u63a5\u3001\u683c\u5f0f\u8f6c\u6362\u6216\u4fee\u6539\u540e\u7528\u4e8e\u4f01\u4e1a\u540d\u79f0\u3001\u5546\u6807\u3001\u6807\u8bc6\uff1b\u4f01\u4e1a\u5ba3\u4f20\u518c\uff1b\u4ea7\u54c1\u5305\u88c5\u3001\u9644\u52a0\u6807\u724c\uff1b\u4ea7\u54c1\u8bf4\u660e\u4e66\uff1b\u53d1\u5e03\u5356\u573a\u6d77\u62a5\u3001\u5e73\u9762\u5e7f\u544a\u3001\u7535\u89c6\u5e7f\u544a\u3001\u6237\u5916\u5e7f\u544a\u3001\u7f51\u7edc\u5e7f\u544a\uff1b\u4f01\u4e1a\u81ea\u6709\u7f51\u7ad9\uff1b\u97f3\u50cf\u5236\u54c1\u3001\u5c55\u89c8\u3001\u5c55\u793a\u4e2d\u3002<\/p>\n<\/blockquote>\n<p>\u56e0\u6b64@font-face\u5f15\u7528\u65b9\u5f0f\u662f\u4f1a\u4fb5\u6743\u7684\u3002<\/p>\n<p>\u5f53\u7136\u4e86\uff0c\u5982\u679c\u516c\u53f8\u8d2d\u4e70\u8fc7\u5176\u4ed6\u5b57\u4f53\uff0c\u662f\u53ef\u4ee5\u7528@font-face\u6765\u5f15\u5165\u4f7f\u7528\u7684\u3002<\/p>\n<h2>\u5b57\u4f53\u683c\u5f0f\u4ecb\u7ecd<\/h2>\n<p>\u8bf4\u5230@font-face\u5f15\u5165\u5b57\u4f53\uff0c\u5c31\u4e0d\u5f97\u4e0d\u63d0\u5230\u5b57\u4f53\u7684\u683c\u5f0f\u4e86\u3002\u56e0\u4e3a\u4e0d\u540c\u7684\u6d4f\u89c8\u5668\u5bf9\u5b57\u4f53\u683c\u5f0f\u652f\u6301\u662f\u4e0d\u4e00\u81f4\u7684\uff0c\u6240\u4ee5\u5404\u4f4d\u8bbe\u8ba1\u5e08\u8981\u7b80\u5355\u4e86\u89e3\u4e00\u4e0b\u5404\u79cd\u7248\u672c\u6d4f\u89c8\u5668\u652f\u6301\u4ec0\u4e48\u6837\u7684\u5b57\u4f53\u3002<\/p>\n<h4>1\u3001True Type Font(.ttf)\u683c\u5f0f<\/h4>\n<p>.ttf\u5b57\u4f53\u662fWindows\u548cMac\u7684\u6700\u5e38\u89c1\u7684\u5b57\u4f53\uff0c\u652f\u6301\u8fd9\u79cd\u5b57\u4f53\u7684\u6d4f\u89c8\u5668\u6709IE9+\uff0cFirefox3.5+\uff0cChrome4+\uff0cSafari3+\uff0cOpera10+\uff0ciOS Mobile Safari4.2+<\/p>\n<h4>2\u3001Open Type Font(.otf)\u683c\u5f0f<\/h4>\n<p>.otf\u5b57\u4f53\u88ab\u8ba4\u4e3a\u662f\u4e00\u79cd\u539f\u59cb\u7684\u5b57\u4f53\u683c\u5f0f\uff0c\u5176\u5185\u7f6e\u5728TrueType\u7684\u57fa\u7840\u4e0a\uff0c\u6240\u4ee5\u4e5f\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd,\u652f\u6301\u8fd9\u79cd\u5b57\u4f53\u7684\u6d4f\u89c8\u5668\u6709Firefox3.5+\uff0cChrome4.0+\uff0cSafari3.1+\uff0cOpera10.0+\uff0ciOS Mobile Safari4.2+<\/p>\n<h4>3\u3001Web Open Font Format(.woff)\u683c\u5f0f<\/h4>\n<p>.woff\u5b57\u4f53\u662fWeb\u5b57\u4f53\u4e2d\u6700\u4f73\u683c\u5f0f\uff0c\u4ed6\u662f\u4e00\u4e2a\u5f00\u653e\u7684TrueType\/OpenType\u7684\u538b\u7f29\u7248\u672c\uff0c\u540c\u65f6\u4e5f\u652f\u6301\u5143\u6570\u636e\u5305\u7684\u5206\u79bb,\u652f\u6301\u8fd9\u79cd\u5b57\u4f53\u7684\u6d4f\u89c8\u5668\u6709IE9+\uff0cFirefox3.5+\uff0cChrome6+\uff0cSafari3.6+\uff0cOpera11.1+<\/p>\n<h4>4\u3001Embedded Open Type(.eot)\u683c\u5f0f<\/h4>\n<p>.eot\u5b57\u4f53\u662fIE\u4e13\u7528\u5b57\u4f53\uff0c\u53ef\u4ee5\u4eceTrueType\u521b\u5efa\u6b64\u683c\u5f0f\u5b57\u4f53,\u652f\u6301\u8fd9\u79cd\u5b57\u4f53\u7684\u6d4f\u89c8\u5668\u6709IE4+<\/p>\n<h4>5\u3001SVG(.svg)\u683c\u5f0f<\/h4>\n<p>.svg\u5b57\u4f53\u662f\u57fa\u4e8eSVG\u5b57\u4f53\u6e32\u67d3\u7684\u4e00\u79cd\u683c\u5f0f,\u652f\u6301\u8fd9\u79cd\u5b57\u4f53\u7684\u6d4f\u89c8\u5668\u6709Chrome4+\uff0cSafari3.1+\uff0cOpera10.0+\uff0ciOS Mobile Safari3.2+<\/p>\n<p>\u662f\u4e0d\u662f\u5f88\u719f\u6089\uff1f\u770b\u5230\u8fd9\u91cc\uff0c\u5f88\u591a\u8bbe\u8ba1\u5e08\u4f1a\u60f3\u5230iconfont\u3002\u5343\u4e07\u4e0d\u8981\u628aiconfont\u60f3\u6210\u4e00\u4e2a\u7b80\u5355\u7684\u56fe\u6807\u7d20\u6750\u5e93\uff0c\u5b83\u7684\u6f5c\u529b\u6bd4\u60f3\u8c61\u7684\u8981\u5927\u5f97\u591a\u3002<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/uidora.com\/wp-content\/uploads\/2019\/03\/20190306-uihacker-css-font-family-6.jpg\"\/><\/figure>\n<p>Iconfont\u672c\u8d28\u4e0a\u5c31\u662f\u628a\u56fe\u6807\u8f6c\u5316\u4e3a\u5b57\u4f53\uff0c\u5b98\u65b9\u7684\u4e09\u79cd\u4f7f\u7528\u65b9\u6cd5\u4e2d\uff08unicode\u5f15\u7528\u3001font-class\u5f15\u7528\u3001symbol\u5f15\u7528\uff09\u7684unicode\u5f15\u7528\u5176\u5b9e\u5c31\u662f\u7528\u4e86@font-face\u7684\u65b9\u6cd5\u3002\u6bd4\u5982\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50\u3002<\/p>\n<p><code>@font-face {font-family: &#39;iconfont&#39;;<\/code><\/p>\n<p><code>\tsrc: url(&#39;iconfont.eot&#39;);<\/code><\/p>\n<p><code>\tsrc: url(&#39;iconfont.eot?#iefix&#39;) format(&#39;embedded-opentype&#39;),<\/code><\/p>\n<p><code>\turl(&#39;iconfont.woff&#39;) format(&#39;woff&#39;),<\/code><\/p>\n<p><code>\turl(&#39;iconfont.ttf&#39;) format(&#39;truetype&#39;),<\/code><\/p>\n<p><code>\turl(&#39;iconfont.svg#iconfont&#39;) format(&#39;svg&#39;);<\/code><\/p>\n<p><code>}<\/code><\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u5206\u6790\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5f97\u51fa\u7ed3\u8bba\uff1afont-family\u65b9\u6cd5\u662f\u6ca1\u6709\u95ee\u9898\u7684\uff0c\u4f46\u662f@font-face\u65b9\u6cd5\u5c31\u4f1a\u9020\u6210\u4fb5\u6743\u3002<\/p>\n<h2>\u5e38\u7528\u7684\u53ef\u5546\u7528\u514d\u8d39\u5b57\u4f53<\/h2>\n<p>\u5bf9\u4e8e\u5927\u90e8\u5206\u516c\u53f8\u6765\u8bf4\uff0c\u5b57\u4f53\u7248\u6743\u610f\u8bc6\u8fd8\u9700\u8981\u52a0\u5f3a\uff0c\u9664\u4e86\u4ed8\u8d39\u8d2d\u4e70\u5b57\u4f53\u4e4b\u5916\uff0c\u4e92\u8054\u7f51\u8fd8\u6709\u5f88\u591a\u514d\u8d39\u53ef\u5546\u7528\u7684\u5b57\u4f53\u5171\u8bbe\u8ba1\u5e08\u9009\u62e9\uff0c\u4e0b\u9762\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u514d\u8d39\u53ef\u5546\u7528\u5b57\u4f53\u6574\u7406\uff0c\u9644\u6709\u6388\u6743\u94fe\u63a5\uff0c\u4f9b\u5927\u5bb6\u67e5\u9605\u3002<\/p>\n<p>\u53e6\u5916\u8fd8\u6709\u4e00\u70b9\u5c31\u662f\uff0c\u6709\u4e9b\u7f51\u7ad9\u63d0\u4f9b\u4e86\u6c49\u4eea\u548c\u534e\u5eb7\u5728\u4eac\u4e1c\u963f\u91cc\u7684\u5408\u4f5c\u5b57\u4f53\uff0c\u6ce8\u610f\uff0c\u8fd9\u4e9b\u5b57\u4f53\u53ea\u80fd\u5728\u4eac\u4e1c\u548c\u963f\u91cc\u5e73\u53f0\u4f7f\u7528\uff0c\u662f\u65b9\u4fbf\u5546\u5bb6\u4f7f\u7528\u7684\uff0c\u5982\u679c\u5728\u8fd9\u4fe9\u5e73\u53f0\u4e4b\u5916\u4f7f\u7528\u5c31\u4f1a\u9020\u6210\u4fb5\u6743\uff0c\u8bf7\u5927\u5bb6\u8c28\u8bb0\u3002<\/p>\n<p>\u7531\u4e8e\u4f1a\u9020\u6210\u8bef\u5bfc\uff0c\u4e0b\u8f7d\u5730\u5740\u5df2\u628a\u534e\u5eb7\u548c\u6c49\u4eea\u5b57\u4f53\u53bb\u9664\u3002<\/p>\n<p>\u4e0b\u8f7d\u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1PETjqh0v9DsMVjR65hVG2g <\/p>\n<p>\u63d0\u53d6\u7801: vxef <\/p>\n<h4>\u601d\u6e90\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u601d\u6e90\u9ed1\u4f53\u3001\u601d\u6e90\u5b8b\u4f53\u3001\u601d\u6e90\u67d4\u9ed1\u4f53\u3001\u601d\u6e90\u771f\u9ed1\u4f53<\/p>\n<p>\u6388\u6743\u51fa\u5904\uff1a<\/p>\n<p>https:\/\/www.google.com\/get\/noto\/<\/p>\n<p>http:\/\/jikasei.me\/font\/genjyuu\/<\/p>\n<p>http:\/\/jikasei.me\/font\/genshin\/<\/p>\n<h4>\u660e\u671d\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u88c5\u7532\u660e\u671d\u4f53\u3001\u6e90\u754c\u660e\u671d\u3001\u82b1\u56ed\u660e\u671d\u3001Oradano-Mincho\u540d\u671d<\/p>\n<p>\u6388\u6743\u51fa\u5904<\/p>\n<p>http:\/\/fonts.jp\/hanazono\/<\/p>\n<h4>\u65b9\u6b63\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u65b9\u6b63\u9ed1\u4f53\u3001\u65b9\u6b63\u4e66\u5b8b\u3001\u65b9\u6b63\u4eff\u5b8b\u3001\u65b9\u6b63\u6977\u4f53\u3002<\/p>\n<p>\u6388\u6743\u51fa\u5904\uff1a<\/p>\n<p>http:\/\/www.foundertype.com\/index.php\/About\/bookAuth\/key\/my_sysq.html<\/p>\n<h4>\u660e\u4f53\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u6e90\u6837\u660e\u4f53\u3001\u6e90\u6d41\u660e\u4f53\u3001\u6e90\u4e91\u660e\u4f53\u3001\u6e90\u6837\u9ed1\u4f53\u3001\u6e90\u77f3\u9ed1\u4f53\u3001\u6e90\u6cc9\u5706\u4f53<\/p>\n<p>\u6388\u6743\u51fa\u5904<\/p>\n<p>https:\/\/github.com\/ButTaiwan?tab=stars<\/p>\n<h4>\u5176\u5b83\u4e2d\u6587\u5b57\u4f53&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1aDroid Sans Fallback\u3001\u5e9e\u95e8\u6b63\u9053\u6807\u9898\u4f53\u3001Fandol\u5b57\u4f53\uff08\u7834\u4ea7\u9ed1\u4f53\uff09<\/p>\n<p>\u6388\u6743\u51fa\u5904<\/p>\n<p>https:\/\/code.google.com\/archive\/p\/droid-sans-mono-py\/<\/p>\n<p>https:\/\/mp.weixin.qq.com\/s\/BGXeAXrEo6CM5-gtdQOuYA<\/p>\n<p>https:\/\/github.com\/zenozeng\/Free-Chinese-Fonts\/issues\/13<\/p>\n<h4>\u7ad9\u9177\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u7ad9\u9177\u9177\u9ed1\u4f53\u3001\u7ad9\u9177\u610f\u5927\u5229\u4f53\u3001\u7ad9\u9177\u5feb\u4e50\u4f53\u3001\u7ad9\u9177\u9ad8\u7aef\u9ed1\u4f53\u3001\u7ad9\u9177\u5e86\u79d1\u9ec4\u6cb9\u4f53\u3001\u7ad9\u9177\u6587\u827a\u4f53\u3001\u7ad9\u9177\u5c0f\u8587LOGO\u4f53<\/p>\n<p>\u6388\u6743\u51fa\u5904<\/p>\n<p>http:\/\/www.zcool.com.cn\/special\/zcoolfonts\/<\/p>\n<h4>\u65e5\u5f0f\u5b57\u4f53&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u8d85\u6975\u7d30\u30b4\u30b7\u30c3\u30af\u4f53\u3001Smartfont\u3001KanjyukuGothic<\/p>\n<p>\u6388\u6743\u51fa\u5904<\/p>\n<p>http:\/\/font.websozai.jp\/line-font-mihon.html<\/p>\n<p>http:\/\/flopdesign.com\/freefont\/smartfont.html<\/p>\n<p>http:\/\/www.flopdesign.com\/freefont\/kanjyukugothic-freefont.html<\/p>\n<h4>\u624b\u5199\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u624b\u5199\u6742\u5b57\u4f53\u3001\u6fd1\u6237\u5b57\u4f53\u3001\u6c49\u4eea\u8d24\u4e8c\u4f53\u3001\u6c90\u7476\u8f6f\u7b14\u624b\u5199\u4f53\u3001\u624b\u5199\u4f53\u3001\u6768\u4efb\u4e1c\u7af9\u77f3\u4f53<\/p>\n<p>\u6388\u6743\u51fa\u5904<\/p>\n<p>http:\/\/www39.atpages.jp\/yagoinienie\/851fontpage.html<\/p>\n<p>https:\/\/www.justfont.com\/fontdetail\/147<\/p>\n<p>https:\/\/www.zcool.com.cn\/article\/ZNjk4NDM2.html<\/p>\n<p>https:\/\/www.zcool.com.cn\/work\/ZMjg5MjAwMDQ=.html<\/p>\n<p>https:\/\/www.zhihu.com\/question\/19889152\/answer\/245685101<\/p>\n<p>https:\/\/mp.weixin.qq.com\/s\/7kv3i_YEs7x9_9IrCDYvBA<\/p>\n<h4>\u523b\u77f3\u9304\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u523b\u77f3\u9304\u92fc\u7b46\u9db4\u9ad4\u3001\u523b\u77f3\u9304\u660e\u9ad4\u3001\u523b\u77f3\u9304\u984f\u9ad4<\/p>\n<p>\u6388\u6743\u51fa\u5904\uff1a<\/p>\n<p>http:\/\/founder.acgvlyric.org\/iu\/doku.php\/%E8%A8%98%E4%BA%8B:%E6%9C%AC%E9%8C%84%E6%96%87%E7%AB%A0%E7%B8%BD%E8%A6%BD<\/p>\n<h4>\u5168\u5b57\u5e93\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u5168\u5b57\u5e93\u8bf4\u6587\u89e3\u5b57\u3001\u5168\u5b57\u5e93\u6b63\u5b8b\u4f53\u3001\u5168\u5b57\u5e93\u6b63\u6977\u4f53<\/p>\n<p>\u6388\u6743\u51fa\u5904<\/p>\n<p>http:\/\/www.cns11643.gov.tw\/AIDB\/copyright.do<\/p>\n<h4>\u738b\u6f22\u5b97\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u738b\u6f22\u5b97\u6a19\u6977\u9ad4\u7a7a\u5fc3\u3001\u738b\u6f22\u5b97\u6ce2\u5361\u9ad4\u7a7a\u9670\u3001\u738b\u6f22\u5b97\u6ce2\u6d6a\u9ad4\u3001\u738b\u6f22\u5b97\u8d85\u9ed1\u4fcf\u76ae\u52d5\u7269\u3001\u738b\u6f22\u5b97\u8d85\u660e\u9ad4\u3001\u738b\u6f22\u5b97\u7c97\u92fc\u9ad4\u6a19\u6e96\u3001\u738b\u6f22\u5b97\u7c97\u9ed1\u9ad4\u5be6\u9670\u3001\u738b\u6f22\u5b97\u7c97\u5713\u9ad4\u96d9\u7a7a\u3001\u738b\u6f22\u5b97\u4eff\u5b8b\u6a19\u6e96\u3001\u738b\u6f22\u5b97\u92fc\u7b46\u884c\u6977\u3001\u738b\u6f22\u5b97\u6d77\u5831\u9ad4\u534a\u5929\u6c34\u3001\u738b\u6f22\u5b97\u7279\u9ed1\u9ad4\u3001\u738b\u6f22\u5b97\u7279\u660e\u9ad4\u6a19\u6e96\u3001\u738b\u6f22\u5b97\u7d30\u9ed1\u9ad4\u3001\u738b\u6f22\u5b97\u7d30\u65b0\u5b8b\u7c21\u9ad4\u3001\u738b\u6f22\u5b97\u984f\u6977\u9ad4\u3001\u738b\u6f22\u5b97\u4e2d\u9b4f\u7891\u7c21\u9ad4<\/p>\n<p>\u6388\u6743\u51fa\u5904\uff1a<\/p>\n<p>https:\/\/zh.wikipedia.org\/wiki\/%E7%8E%8B%E6%BC%A2%E5%AE%97%E8%87%AA%E7%94%B1%E5%AD%97%E5%9E%8B<\/p>\n<h4>\u6587\u6cc9\u9a7f\u7cfb\u5217&nbsp;<\/h4>\n<p>\u514d\u8d39\u5b57\u4f53\uff1a\u6587\u6cc9\u9a7f\u6b63\u9ed1\u4f53\u3001\u6587\u6cc9\u9a7f\u5fae\u7c73\u9ed1\u3001\u6587\u6cc9\u9a7f\u70b9\u9635\u5b8b\u4f53\uff08\u6b64\u5b8b\u4f53\u65e0Windows\u7248\u672c&#8230;\uff09<\/p>\n<p>\u6388\u6743\u51fa\u5904\uff1a<\/p>\n<p>http:\/\/wenq.org\/wqy2\/index.cgi?FontGuide<\/p>\n<p>\u4ee5\u4e0a\u514d\u8d39\u5b57\u4f53\u4e0b\u8f7d\u94fe\u63a5<\/p>\n<p>\u4e0b\u8f7d\u94fe\u63a5: https:\/\/pan.baidu.com\/s\/1PETjqh0v9DsMVjR65hVG2g <\/p>\n<p>\u63d0\u53d6\u7801: vxef <\/p>\n<p>\u5982\u679c\u767e\u5ea6\u4e0b\u8f7d\u901f\u5ea6\u6162\uff0c\u8bf7\u770b\u8fd9\u7bc7\u6587\u7ae0<\/p>\n<p><a href=\"https:\/\/uidora.com\/baiduyun-free-download\/\">\u300a\u7a81\u7834\u9650\u5236\uff01\u975e\u4f1a\u5458\u5feb\u901f\u4e0b\u8f7d\u767e\u5ea6\u4e91\u8d44\u6e90\u300b<\/a><\/p>\n<p>END<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u51e0\u5929\u8bbe\u8ba1\u5708\u90fd\u88ab\u4e00\u6761\u5b57\u4f53\u4fb5\u6743\u6d88\u606f\u5237\u5c4f\uff0c\u4e00\u516c\u53f8\u5728\u6ca1\u6709\u83b7\u5f97\u5b57\u4f53\u7248\u6743\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u5fae\u8f6f\u96c5\u9ed1\u505a\u5370\u5237\u54c1\uff0c\u6837\u7a3f\u5370\u5237\u5382\u5370\u4e8650 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[2],"tags":[6,11,16],"class_list":["post-195","post","type-post","status-publish","format-gallery","hentry","category-resources","tag-html-css","tag-11","tag-16","post_format-post-format-gallery"],"_links":{"self":[{"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=195"}],"version-history":[{"count":0,"href":"https:\/\/uidora.com\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions"}],"wp:attachment":[{"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uidora.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}