{"id":1078,"date":"2011-11-01T22:22:47","date_gmt":"2011-11-01T14:22:47","guid":{"rendered":"http:\/\/www.gaigaiming.com\/?p=1078"},"modified":"2011-11-01T22:22:47","modified_gmt":"2011-11-01T14:22:47","slug":"1078","status":"publish","type":"post","link":"https:\/\/www.gaigaiming.com\/index.php\/2011\/11\/01\/1078\/","title":{"rendered":"\u5c11\u89c1\u5916\u6587\u52a0\u8f7d\u5b57\u4f53CSS3@font-face"},"content":{"rendered":"<p>\u4eca\u5929\u5728\u7fa4\u91cc\u5bd2\u5343\u8f89\uff0c\u8bf4\u4ed6\u505a\u7684\u7f51\u7ad9\u91cc\u9762\u7684\u6587\u5b57\u9700\u8981\u52a0\u8f7d\u6cf0\u6587\u3001\u50e7\u4f3d\u7f57\u8bed\u7b49\u5916\u6587\uff0c\u53ef\u662f\u6709\u7684\u6587\u5b57\uff0c\u5b89\u88c5\u7cfb\u7edf\u91cc\u9762\u5e76\u6ca1\u6709\u3002\u9700\u8981\u52a0\u8f7d\u3002<\/p>\n<p>\u6700\u540e\u4ed6\u641c\u5230\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u8fd9\u4e2a<\/p>\n<p>@font-face {<br \/>\n    font-family: &#8220;Limon S5&#8221;;<br \/>\n    \/* Point to Borg due to crossdomain *\/<br \/>\n    src: url(http:\/\/learning.chinese.cn\/ls5.eot); \/* For IE *\/<br \/>\n    src: local(&#8220;Limon S5&#8221;), url(http:\/\/learning.chinese.cn\/lmns5.ttf);<br \/>\n font-family: &#8220;Daunpenh&#8221;;<br \/>\n    \/* Point to Borg due to crossdomain *\/<br \/>\n    src: url(http:\/\/learning.chinese.cn\/dh.eot); \/* For IE *\/<br \/>\n    src: local(&#8220;Daunpenh&#8221;), url(http:\/\/learning.chinese.cn\/daunpenh.ttf);<br \/>\n font-family: &#8220;khmeros&#8221;;<br \/>\n    \/* Point to Borg due to crossdomain *\/<br \/>\n    src: url(http:\/\/learning.chinese.cn\/kkk.eot); \/* For IE *\/<br \/>\n    src: local(&#8220;khmeros&#8221;), url(http:\/\/learning.chinese.cn\/kkk.ttf);\u6211\u6ca1\u6709\u7528\u8fc7\u8fd9\u79cd\u52a0\u8f7d\u5b57\u4f53\u7684\u65b9\u6cd5\uff0c\u7279\u522b\u641c\u7d22\u4e86\u4e00\u4e0b\u3002\u7136\u540e\u4e86\u89e3\u5176\u539f\u7406\u3002\u5e0c\u671b\u5bf9\u81ea\u5df1\u548c\u5927\u5bb6\u90fd\u6709\u5e2e\u52a9\u3002\u7b80\u5355\u6982\u5ff5\uff1ahttp:\/\/www.php100.com\/manual\/css3_0\/@font-face.shtml<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u4ee5\u4e0b\u662f\u641c\u7d22\u5230\u7f51\u7edc&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>\u539f\u6587\u5730\u5740\uff1ahttp:\/\/www.cnblogs.com\/rubylouvre\/archive\/2011\/06\/19\/2084875.html\uff08\u53f8\u5f92\u6b63\u7f8e\uff09<br \/>\n@font-face\u662fCSS3\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u4ed6\u4e3b\u8981\u662f\u628a\u81ea\u5df1\u5b9a\u4e49\u7684Web\u5b57\u4f53\u5d4c\u5165\u5230\u4f60\u7684\u7f51\u9875\u4e2d\uff0c\u968f\u7740@font-face\u6a21\u5757\u7684\u51fa\u73b0\uff0c\u6211\u4eec\u5728Web\u7684\u5f00\u53d1\u4e2d\u4f7f\u7528\u5b57\u4f53\u4e0d\u6015\u53ea\u80fd\u4f7f\u7528Web\u5b89\u5168\u5b57\u4f53\uff0c\u4f60\u4eec\u5f53\u4e2d\u6216\u8bb8\u6709\u8bb8\u591a\u4eba\u4f1a\u4e0d\u81ea\u7136\u7684\u95ee\uff0c\u8fd9\u6837\u7684\u4e1c\u897fIE\u80fd\u652f\u6301\u5417\uff1f\u5f53\u6211\u544a\u8bc9\u5927\u5bb6@font-face\u8fd9\u4e2a\u529f\u80fd\u65e9\u5728IE4\u5c31\u652f\u6301\u4e86\u4f60\u80af\u5b9a\u4f1a\u611f\u5230\u60ca\u8bb6\u3002\u6211\u7684Blog\u5c31\u4f7f\u7528\u4e86\u8bb8\u591a\u8fd9\u6837\u7684\u81ea\u5b9a\u4e49Web\u5b57\u4f53\uff0c\u6bd4\u5982\u8bf4\u9996\u9875\u7684Logo\uff0cTags\u4ee5\u53ca\u9875\u9762\u4e2d\u7684\u624b\u5199\u82f1\u6587\u4f53\uff0c\u5f88\u591a\u670b\u53cb\u95ee\u6211\u5982\u4f55\u4f7f\u7528\uff0c\u80fd\u8ba9\u81ea\u5df1\u7684\u9875\u9762\u4e5f\u652f\u6301\u8fd9\u6837\u7684\u81ea\u5b9a\u4e49\u5b57\u4f53\uff0c\u4e00\u53e5\u8bdd\u8fd9\u4e9b\u90fd\u662f@font-face\u5b9e\u73b0\u7684\uff0c\u4e3a\u4e86\u80fd\u8ba9\u66f4\u591a\u7684\u670b\u53cb\u77e5\u9053\u5982\u4f55\u4f7f\u7528\u4ed6\uff0c\u4eca\u5929\u6211\u4e3b\u8981\u628a\u81ea\u5df1\u7684\u4e00\u70b9\u5b66\u4e60\u8fc7\u7a0b\u8d34\u4e0a\u6765\u548c\u5927\u5bb6\u5206\u4eab\u3002<\/p>\n<p>\u9996\u5148\u6211\u4eec\u4e00\u8d77\u6765\u770b\u770b@font-face\u7684\u8bed\u6cd5\u89c4\u5219\uff1a<\/p>\n<p>@font-face { font-family: <YourWebFontName>; src:<source>[<format>][,<source>[<format>]]*; [font-weight: <weight>]; [font-style: <\/p>\n<style>]; }<\/p>\n<p>\u53d6\u503c\u8bf4\u660e<\/p>\n<p>YourWebFontName:\u6b64\u503c\u6307\u7684\u5c31\u662f\u4f60\u81ea\u5b9a\u4e49\u7684\u5b57\u4f53\u540d\u79f0\uff0c\u6700\u597d\u662f\u4f7f\u7528\u4f60\u4e0b\u8f7d\u7684\u9ed8\u8ba4\u5b57\u4f53\uff0c\u4ed6\u5c06\u88ab\u5f15\u7528\u5230\u4f60\u7684Web\u5143\u7d20\u4e2d\u7684font-family\u3002\u5982\u201cfont-family:\"YourWebFontName\";\u201d <\/p>\n<p>source:\u6b64\u503c\u6307\u7684\u662f\u4f60\u81ea\u5b9a\u4e49\u7684\u5b57\u4f53\u7684\u5b58\u653e\u8def\u5f84\uff0c\u53ef\u4ee5\u662f\u76f8\u5bf9\u8def\u5f84\u4e5f\u53ef\u4ee5\u662f\u7edd\u8def\u5f84\uff1b <\/p>\n<p>format\uff1a\u6b64\u503c\u6307\u7684\u662f\u4f60\u81ea\u5b9a\u4e49\u7684\u5b57\u4f53\u7684\u683c\u5f0f\uff0c\u4e3b\u8981\u7528\u6765\u5e2e\u52a9\u6d4f\u89c8\u5668\u8bc6\u522b\uff0c\u5176\u503c\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u79cd\u7c7b\u578b\uff1atruetype,opentype,truetype-aat,embedded-opentype,avg\u7b49\uff1b <\/p>\n<p>weight\u548cstyle:\u8fd9\u4e24\u4e2a\u503c\u5927\u5bb6\u4e00\u5b9a\u5f88\u719f\u6089\uff0cweight\u5b9a\u4e49\u5b57\u4f53\u662f\u5426\u4e3a\u7c97\u4f53\uff0cstyle\u4e3b\u8981\u5b9a\u4e49\u5b57\u4f53\u6837\u5f0f\uff0c\u5982\u659c\u4f53\u3002 <\/p>\n<p>\u517c\u5bb9\u6d4f\u89c8\u5668<\/p>\n<p>\u8bf4\u5230\u6d4f\u89c8\u5668\u5bf9@font-face\u7684\u517c\u5bb9\u95ee\u9898\uff0c\u8fd9\u91cc\u6d89\u53ca\u5230\u4e00\u4e2a\u5b57\u4f53format\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u4e0d\u540c\u7684\u6d4f\u89c8\u5668\u5bf9\u5b57\u4f53\u683c\u5f0f\u652f\u6301\u662f\u4e0d\u4e00\u81f4\u7684\uff0c\u8fd9\u6837\u5927\u5bb6\u6709\u5fc5\u8981\u4e86\u89e3\u4e00\u4e0b\uff0c\u5404\u79cd\u7248\u672c\u7684\u6d4f\u89c8\u5668\u652f\u6301\u4ec0\u4e48\u6837\u7684\u5b57\u4f53\uff0c\u524d\u9762\u4e5f\u7b80\u5355\u5e26\u5230\u4e86\u6709\u5173\u5b57\u4f53\u7684\u51e0\u79cd\u683c\u5f0f\uff0c\u4e0b\u9762\u6211\u5c31\u5206\u522b\u8bf4\u4e00\u4e0b\u8fd9\u4e2a\u95ee\u9898\uff0c\u8ba9\u5927\u5bb6\u5fc3\u91cc\u6709\u4e00\u4e2a\u6982\u5ff5\uff1a<\/p>\n<p>\u4e00\u3001TureTpe(.ttf)\u683c\u5f0f\uff1a<\/p>\n<p>.ttf\u5b57\u4f53\u662fWindows\u548cMac\u7684\u6700\u5e38\u89c1\u7684\u5b57\u4f53\uff0c\u662f\u4e00\u79cdRAW\u683c\u5f0f\uff0c\u56e0\u6b64\u4ed6\u4e0d\u4e3a\u7f51\u7ad9\u4f18\u5316,\u652f\u6301\u8fd9\u79cd\u5b57\u4f53\u7684\u6d4f\u89c8\u5668\u6709\u3010IE9+,Firefox3.5+,Chrome4+,Safari3+,Opera10+,iOS Mobile Safari4.2+\u3011\uff1b<\/p>\n<p>\u4e8c\u3001OpenType(.otf)\u683c\u5f0f\uff1a<\/p>\n<p>.otf\u5b57\u4f53\u88ab\u8ba4\u4e3a\u662f\u4e00\u79cd\u539f\u59cb\u7684\u5b57\u4f53\u683c\u5f0f\uff0c\u5176\u5185\u7f6e\u5728TureType\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\u6709\u3010Firefox3.5+,Chrome4.0+,Safari3.1+,Opera10.0+,iOS Mobile Safari4.2+\u3011\uff1b<\/p>\n<p>\u4e09\u3001Web Open Font Format(.woff)\u683c\u5f0f\uff1a<\/p>\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\u6709\u3010IE9+,Firefox3.5+,Chrome6+,Safari3.6+,Opera11.1+\u3011\uff1b<\/p>\n<p>\u56db\u3001Embedded Open Type(.eot)\u683c\u5f0f\uff1a<\/p>\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\u6709\u3010IE4+\u3011\uff1b<\/p>\n<p>\u4e94\u3001SVG(.svg)\u683c\u5f0f\uff1a<\/p>\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\u6709\u3010Chrome4+,Safari3.1+,Opera10.0+,iOS Mobile Safari3.2+\u3011\u3002<\/p>\n<p>\u8fd9\u5c31\u610f\u5473\u7740\u5728@font-face\u4e2d\u6211\u4eec\u81f3\u5c11\u9700\u8981.woff,.eot\u4e24\u79cd\u683c\u5f0f\u5b57\u4f53\uff0c\u751a\u81f3\u8fd8\u9700\u8981.svg\u7b49\u5b57\u4f53\u8fbe\u5230\u66f4\u591a\u79cd\u6d4f\u89c8\u7248\u672c\u7684\u652f\u6301\u3002<\/p>\n<p>\u4e3a\u4e86\u4f7f@font-face\u8fbe\u5230\u66f4\u591a\u7684\u6d4f\u89c8\u5668\u652f\u6301\uff0cPaul Irish\u5199\u4e86\u4e00\u4e2a\u72ec\u7279\u7684@font-face\u8bed\u6cd5\u53ebBulletproof @font-face:<\/p>\n<p>@font-face {<br \/>\nfont-family: 'YourWebFontName';<br \/>\nsrc: url('YourWebFontName.eot?') format('eot');\/*IE*\/<br \/>\nsrc:url('YourWebFontName.woff') format('woff'), url('YourWebFontName.ttf') format('truetype');\/*non-IE*\/<br \/>\n}<\/p>\n<p>\u4f46\u4e3a\u4e86\u8ba9\u5404\u591a\u7684\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5199\u6210\uff1a<\/p>\n<p>@font-face {<br \/>\nfont-family: 'YourWebFontName';<br \/>\nsrc: url('YourWebFontName.eot'); \/* IE9 Compat Modes *\/<br \/>\nsrc: url('YourWebFontName.eot?#iefix') format('embedded-opentype'), \/* IE6-IE8 *\/ url('YourWebFontName.woff') format('woff'), \/* Modern Browsers *\/ url('YourWebFontName.ttf') format('truetype'), \/* Safari, Android, iOS *\/ url('YourWebFontName.svg#YourWebFontName') format('svg'); \/* Legacy iOS *\/<br \/>\n}<\/p>\n<p>\u8bf4\u4e86\u8fd9\u4e48\u591a\u7a7a\u6d1e\u7684\u7406\u8bba\u77e5\u8bc6\uff0c\u5927\u5bb6\u4e00\u5b9a\u6709\u70b9\u5fc3\u75d2\u75d2\u4e86\uff0c\u90a3\u4e48\u6211\u4eec\u5148\u6765\u770b\u770bW3CPLUS\u9996\u9875\u4e2d\u5bfc\u822a\u90e8\u5206\u7684\u5170\u8272\u5b57\u4f53\u662f\u5982\u4f55\u5b9e\u73b0\u7684\uff0c\u5047\u5982\u6211\u4eec\u6709\u4e00\u4e2a\u8fd9\u6837\u7684DOM\u6807\u7b7e\uff0c\u9700\u8981\u5e94\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\uff1a<\/p>\n<p>HTML Code:<\/p>\n<h2 class=\"neuesDemo\">Neues Bauen Demo<\/h2>\n<p>\u901a\u8fc7@font-face\u6765\u5b9a\u4e49\u81ea\u5df1\u7684Web Font:<\/p>\n<p>@font-face {<br \/>\n font-family: 'NeuesBauenDemo';<br \/>\n src: url('..\/fonts\/neues_bauen_demo-webfont.eot');<br \/>\n src: url('..\/fonts\/neues_bauen_demo-webfont.eot?#iefix') format('embedded-opentype'),  url('..\/fonts\/neues_bauen_demo-webfont.woff') format('woff'),  url('..\/fonts\/neues_bauen_demo-webfont.ttf') format('truetype'),  url('..\/fonts\/neues_bauen_demo-webfont.svg#NeuesBauenDemo') format('svg');<br \/>\n font-weight: normal;<br \/>\n font-style: normal;<br \/>\n}<\/p>\n<p>\u6211\u5728\u8fd9\u91cc\u91c7\u7528\u7684\u662f\u76f8\u5bf9\u8def\u5f84\uff0c\u5f53\u7136\u5927\u5bb6\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7edd\u8def\u5f84\u3002\u5230\u8fd9\u91cc\u6211\u4eec\u5c31\u9700\u8981\u628a\u5b9a\u4e49\u597d\u7684\u5b57\u4f53\u5e94\u7528\u5230\u6211\u4eec\u5b9e\u9645\u9875\u9762\u4e2d\u53bb\uff1a<\/p>\n<p>h2.neuesDemo { font-family: 'NeuesBauenDemo' }<\/p>\n<p>\u6548\u679c\uff1a<\/p>\n<p>\u770b\u5230\u4e0a\u9762\u7684\u6548\u679c\uff0c\u6211\u60f3\u5927\u5bb6\u4f1a\u611f\u5230@font-face\u5f88\u795e\u5947\uff0c\u540c\u65f6\u4e5f\u60f3\u4e89\u7740\u505a\u505a\u770b\uff0c\u53ef\u662f\u4e00\u52a8\u624b\u624d\u53d1\u73b0\uff0c\u7279\u6b8a\u5b57\u4f53\u6211\u8981\u600e\u6837\u624d\u80fd\u5f97\u5230\uff0c\u90a3\u4e9b.eot,.woff,.ttf,.svg\u8fd9\u4e9b\u5b57\u4f53\u683c\u5f0f\u53c8\u600e\u4e48\u83b7\u53d6\u5462\uff1f\u6709\u4e9b\u670b\u53cb\u53ef\u80fd\u5c31\u4e0d\u77e5\u9053\u5982\u4f55\u8fd0\u624b\u4e86\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u5e26\u7740\u8fd9\u4e9b\u95ee\u9898\u6765\u4e00\u4e2a\u5168\u7a0b\u5b8c\u6210\u7684\u5b9e\u4f8b\u5427\uff1a<\/p>\n<p>\u4e00\u3001\u83b7\u53d6\u7279\u6b8a\u5b57\u4f53\uff1a<\/p>\n<p>\u6211\u4eec\u62ff\u4e0b\u9762\u8fd9\u79cdsingle Malta\u5b57\u4f53\u6765\u8bf4\u5427\uff1a<\/p>\n<p>\u8981\u5f97\u5230single Malta\u5b57\u4f53\uff0c\u4e0d\u5916\u4e4e\u4e24\u79cd\u9014\u5f84\uff0c\u5176\u4e00\u627e\u5230\u4ed8\u8d39\u7f51\u7ad9\u8d2d\u4e70\u5b57\u4f53\uff0c\u5176\u4e8c\u5c31\u662f\u5230\u514d\u8d39\u7f51\u7ad9DownLoad\u5b57\u4f53\u3002\u5f53\u7136\u8981\u7ed9\u94b1\u7684\u8fd9\u79cd\u50bb\u4e8b\u6211\u60f3\u5927\u5bb6\u90fd\u4e0d\u4f1a\u505a\u7684\uff0c\u90a3\u6211\u4eec\u5c31\u5f97\u5230\u514d\u8d39\u7684\u5730\u65b9\u4e0b\u8f7d\uff0c\u5728\u54ea\u6709\u5462\uff1f\u6211\u5e73\u65f6\u90fd\u662f\u5230Google Web Fonts\u548cDafont.com\u5bfb\u627e\u81ea\u5df1\u9700\u8981\u7684\u5b57\u4f53\uff0c\u5f53\u7136\u7f51\u4e0a\u4e5f\u8fd8\u6709\u522b\u7684\u4e0b\u8f7d\u5b57\u4f53\u7684\u5730\u65b9\uff0c\u8fd9\u4e2aDemo\u4f7f\u7528\u7684\u662fDafont.com\u7684Single Malta\u5b57\u4f53\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5230\u8fd9\u91cc\u4e0b\u8f7dSingle Malta\uff1a<\/p>\n<p>Single Malta\u4e0b\u8f7d\u4e0b\u6765\u540e\uff0c\u9700\u8981\u628a\u5b83\u89e3\u538b\u7f29\u51fa\u6765\uff1a<\/p>\n<p>\u4e8c\u3001\u83b7\u53d6@font-face\u6240\u9700\u5b57\u4f53\u683c\u5f0f\uff1a<\/p>\n<p>\u7279\u6b8a\u5b57\u4f53\u5df2\u7ecf\u5728\u4f60\u7684\u7535\u8111\u4e2d\u4e86\uff0c\u73b0\u5728\u6211\u4eec\u9700\u8981\u60f3\u529e\u6cd5\u83b7\u5f97@font-face\u6240\u9700\u7684.eot,.woff,.ttf,.svg\u5b57\u4f53\u683c\u5f0f\u3002\u8981\u83b7\u53d6\u8fd9\u4e9b\u5b57\u4f53\u683c\u5f0f\uff0c\u6211\u4eec\u540c\u6837\u662f\u9700\u8981\u7b2c\u4e09\u65b9\u5de5\u5177\u6216\u8005\u8f6f\u4ef6\u6765\u5b9e\u73b0\uff0c\u4e0b\u9762\u6211\u7ed9\u5927\u5bb6\u63a8\u8350\u4e00\u6b3e\u6211\u5e38\u7528\u7684\u4e00\u4e2a\u5de5\u5177fontsquirrel,\u522b\u7684\u5148\u4e0d\u591a\u8bf4\uff0c\u9996\u8ddf\u6211\u70b9\u8fd9\u91cc\u8fdb\u5165\u5230\u4e0b\u9762\u8fd9\u4e2a\u754c\u9762\u5427\u3002<\/p>\n<p>\u5982\u679c\u4f60\u8fdb\u5165\u9875\u9762\u6ca1\u6709\u770b\u5230\u4e0a\u56fe\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u70b9\u51fb\u5bfc\u822a:<\/p>\n<p>\u5982\u679c\u4f60\u770b\u5230\u4e86\u4e0a\u9762\u7684\u754c\u9762\uff0c\u90a3\u5c31\u597d\u529e\u4e86\uff0c\u6211\u4eec\u6765\u770b\u5982\u4f55\u5e94\u7528\u8fd9\u4e2a\u5de5\u5177\u751f\u6210@font-face\u9700\u8981\u7684\u5404\u79cd\u5b57\u4f53\uff0c\u5148\u628a\u6211\u4eec\u521a\u624d\u4e0b\u8f7d\u7684\u5b57\u4f53\u4e0a\u4f20\u4e0a\u53bb\uff1a<\/p>\n<p>\u4e0a\u4f20\u540e\u6309\u4e0b\u56fe\u6240\u793a\u64cd\u4f5c\uff1a<\/p>\n<p>\u73b0\u5728\u4eceFont Squirrel\u4e0b\u8f7d\u4e0b\u6765\u7684\u6587\u4ef6\u5df2\u7ecf\u4fdd\u5b58\u5728\u4f60\u672c\u5730\u7684\u7535\u8111\u4e0a\u4e86\uff0c\u63a5\u7740\u53ea\u8981\u5bf9\u4ed6\u8fdb\u884c\u89e3\u538b\u7f29\uff0c\u4f60\u5c31\u80fd\u770b\u5230\u6587\u4ef6\u5217\u8868\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p>\u5927\u5bb6\u53ef\u4ee5\u770b\u5230\uff0c\u89e3\u538b\u7f29\u51fa\u6765\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u91cc\u9762\u9664\u4e86@font-face\u6240\u9700\u8981\u7684\u5b57\u4f53\u683c\u5f0f\u5916\uff0c\u8fd8\u5e26\u6709\u4e00\u4e2aDEMO\u6587\u4ef6\uff0c\u5982\u679c\u4f60\u4e0d\u6e05\u695a\u7684\u4e5f\u53ef\u4ee5\u53c2\u8003\u4e0b\u8f7d\u4e0b\u6765\u7684DEMO\u6587\u4ef6\uff0c\u6211\u5728\u8fd9\u91cc\u4e0d\u5bf9DEMO\u8bf4\u660e\u95ee\u9898\uff0c\u6211\u4e3b\u8981\u662f\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u5982\u4f55\u628a\u4e0b\u8f7d\u4e0b\u6765\u7684\u6587\u4ef6\u6709\u4ef7\u503c\u7684\u8fd0\u7528\u5230\u6211\u4eec\u7684\u9879\u76ee\u4e2d\u3002<\/p>\n<p>\u4f8b\u5982\u5728\u81ea\u5df1\u7684\u672c\u5730\u521b\u5efa\u4e86\u4e00\u4e2afontface\u9879\u76ee\uff1a<\/p>\n<p>\u4e3a\u4e86\u8ba9\u9879\u76ee\u7ed3\u6784\u66f4\u6e05\u6670\uff0c\u6211\u4eec\u5728\u9879\u76ee\u4e2d\u5355\u72ec\u521b\u5efa\u4e00\u4e2afonts\u76ee\u5f55\uff0c\u7528\u6765\u653e\u7f6e\u89e3\u538b\u7f29\u51fa\u6765@font-face\u6240\u9700\u7684\u5b57\u4f53\u683c\u5f0f\uff1a<\/p>\n<p>\u73b0\u5728@font-face\u6240\u9700\u5b57\u4f53\u5df2\u7ecf\u52a0\u8f7d\u5230\u672c\u5730\u9879\u76ee\uff0c\u73b0\u5728\u672c\u5730\u9879\u76ee\u4e2d\u7684style.css\u4e2d\u9644\u4e0a\u6211\u4eec\u9700\u8981\u7684@font-face\u6837\u5f0f<\/p>\n<p>@font-face {<br \/>\nfont-family: 'SingleMaltaRegular';<br \/>\nsrc: url('..\/fonts\/singlemalta-webfont.eot');<br \/>\nsrc: url('..\/fonts\/singlemalta-webfont.eot?#iefix') format('embedded-opentype'), url('..\/fonts\/singlemalta-webfont.woff') format('woff'), url('..\/fonts\/singlemalta-webfont.ttf') format('truetype'), url('..\/fonts\/singlemalta-webfont.svg#SingleMaltaRegular') format('svg');<br \/>\nfont-weight: normal;<br \/>\nfont-style: normal;<br \/>\n}<\/p>\n<p>\u5230\u8fd9\u91cc\u4e3a\u6b62\uff0c\u6211\u4eec\u5df2\u7ecf\u901a\u8fc7@font-face\u81ea\u5b9a\u4e49\u597d\u6240\u9700\u7684SingleMalta\u5b57\u4f53\uff0c\u79bb\u6700\u540e\u6548\u679c\u53ea\u5dee\u4e00\u6b65\u4e86\uff0c\u5c31\u662f\u628a\u81ea\u5df1\u5b9a\u4e49\u7684\u5b57\u4f53\u5e94\u7528\u5230\u4f60\u7684Web\u4e2d\u7684DOM\u5143\u7d20\u4e0a\uff1a<\/p>\n<p>h2.singleMalta { font-family: 'SingleMaltaRegular' }<\/p>\n<p>\u6548\u679c\uff1a<\/p>\n<p>\u770b\u5230\u4e0a\u9762\u7684\u6548\u679c\uff0c\u90a3\u5927\u5bb6\u5c31\u77e5\u9053\u6211\u4eec\u5b9e\u73b0\u6210\u529f\u4e86\u3002\u90a3\u4e48\u5173\u4e8e@font-face\u5e2e\u4f60\u6253\u9020\u7279\u6b8a\u6548\u679c\u7684\u5b57\u4f53\uff0c\u5230\u8fd9\u91cc\u57fa\u672c\u4e0a\u5c31\u5b8c\u6210\u4e86\uff0c\u6211\u5728\u8fd9\u91cc\u9700\u8981\u63d0\u9192\u4f7f\u7528\u8005\uff1a<\/p>\n<p>1\u3001\u5982\u679c\u4f60\u7684\u9879\u76ee\u4e2d\u662f\u82f1\u6587\u7f51\u7ad9\uff0c\u800c\u4e14\u9879\u76ee\u4e2d\u7684Logo\uff0cTags\u7b49\u5e94\u7528\u5230\u8f83\u591a\u7684\u8fd9\u79cd\u7279\u6b8a\u5b57\u4f53\u6548\u679c\uff0c\u6211\u5efa\u8bae\u4f60\u4e0d\u8981\u4f7f\u7528\u56fe\u7247\u6548\u679c\uff0c\u800c\u4f7f\u7528@font-face\uff0c\u4f46\u662f\u4f60\u662f\u4e2d\u6587\u7f51\u7ad9\uff0c\u6211\u89c9\u5f97\u8fd8\u662f\u4f7f\u7528\u56fe\u7247\u6bd4\u8f83\u5408\u9002\uff0c\u56e0\u4e3a\u52a0\u8f7d\u82f1\u6587\u5b57\u4f53\u548c\u56fe\u7247\u6ca1\u6709\u591a\u5927\u533a\u522b\uff0c\u4f46\u662f\u4f60\u52a0\u8f7d\u4e2d\u6587\u5b57\u4f53\uff0c\u90a3\u5c31\u4e0d\u4e00\u6837\u4e86\uff0c\u56e0\u4e3a\u4e2d\u6587\u5b57\u4f53\u592a\u5927\u4e86\uff0c\u8fd9\u6837\u4f1a\u5f71\u54cd\u5230\u9879\u76ee\u7684\u67d0\u4e9b\u6027\u80fd\u7684\u4f18\u5316\uff1b<\/p>\n<p>2\u3001\u81f4\u547d\u7684\u9519\u8bef\uff0c\u4f60\u5728@font-face\u4e2d\u5b9a\u4e49\u65f6\uff0c\u6587\u4ef6\u8def\u5f84\u6ca1\u6709\u8f7d\u5bf9\uff1b<\/p>\n<p>3\u3001\u4f60\u53ea\u5b9a\u4e49\u4e86@font-face\uff0c\u4f46\u5e76\u6ca1\u6709\u5e94\u7528\u5230\u4f60\u7684\u9879\u76ee\u4e2d\u7684DOM\u5143\u7d20\u4e0a\uff1b<\/p>\n<p>\u4ee5\u4e0a\u51e0\u70b9\u90fd\u662f\u5728\u5e73\u65f6\u5236\u4f5c\u4e2d\u5e38\u51fa\u73b0\u7684\u95ee\u9898\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u5c0f\u610f\u4e00\u4e9b\uff0c\u53e6\u5916\u6211\u4eec\u6ca1\u6709\u529e\u6cd5\u5728\u8d2d\u4e70\u6240\u6709\u5b57\u4f53\uff0c\u5c31\u7b97\u4f60\u5b9e\u529b\u96c4\u539a\uff0c\u90a3\u4e5f\u6ca1\u6709\u529e\u6cd5\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e3b\u673a\u4e0a\u653e\u7f6e\u4f60\u6240\u6709\u9879\u76ee\u9700\u8981\u7684\u5b57\u4f53\u3002\u56e0\u6b64\u6211\u7ed9\u5927\u5bb6\u63d0\u4f9b\u51e0\u4e2a\u514d\u8d39\u5b57\u4f53\u4e0b\u8f7d\u7684\u7f51\u5740\uff1aWebfonts,Typekit,Kernest,Google Web Fonts,Kernest,Dafont,Niec Web Type,\u4e0d\u7136\u4f60\u70b9\u8fd9\u91cc\u5c06\u6709\u66f4\u591a\u7684\u514d\u8d39\u5b57\u4f53\u3002\u524d\u9762\u51e0\u4e2a\u94fe\u63a5\u662f\u5e2e\u52a9\u4f60\u83b7\u53d6\u4e00\u4e9b\u4f18\u7f8e\u7684\u602a\u5f02\u7684\u7279\u6b8a\u5b57\u4f53\uff0c\u4f46\u4e0b\u9762\u8fd9\u4e2a\u5de5\u5177\u4f5c\u7528\u66f4\u662f\u65e0\u7a77\u7684\u5927\uff0c\u4ed6\u80fd\u5e2e\u4f60\u751f\u6210@font-face\u6240\u9700\u8981\u7684\u5404\u79cd\u5b57\u4f53\uff0c\u8fd9\u5de5\u5177\u5c31\u662fFont Squirrel\u3002<\/p>\n<p>\u6700\u540e\u5728\u63d0\u9192\u4e00\u4e0b\uff0c\u4f7f\u7528@font-face\u522b\u7684\u53ef\u4ee5\u5fd8\u4e86\uff0c\u4f46Font Squirrel\u5343\u4e07\u4e0d\u80fd\u5fd8\uff0c\u56e0\u4e3a\u4ed6\u80fd\u5e2e\u4f60\u751f\u6210@font-face\u6240\u9700\u7684\u5404\u79cd\u5b57\u4f53\u683c\u5f0f\u3002<\/p>\n<p>\u5230\u6b64\u5173\u4e8e@font-face\u5c31\u4ecb\u7ecd\u5b8c\u4e86\uff0c\u4e0d\u77e5\u9053\u5927\u5bb6\u559c\u6b22\u4e0d\u559c\u6b22\uff0c\u5982\u679c\u559c\u6b22\u7684\u8bdd\u8d76\u5feb\u52a8\u624b\u5b9e\u8df5\u4e00\u4e0b\uff0c\u6709Blog\u7684\u53ef\u4ee5\u9a6c\u4e0a\u8fd0\u7528\u4e0a\u53bb\uff0c\u4e5f\u53ef\u4ee5\u70ab\u4e00\u4e0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728\u7fa4\u91cc\u5bd2\u5343\u8f89\uff0c\u8bf4\u4ed6\u505a\u7684\u7f51\u7ad9\u91cc\u9762\u7684\u6587\u5b57\u9700\u8981\u52a0\u8f7d\u6cf0\u6587\u3001\u50e7\u4f3d\u7f57\u8bed\u7b49\u5916\u6587\uff0c\u53ef\u662f\u6709\u7684\u6587\u5b57\uff0c\u5b89\u88c5\u7cfb\u7edf\u91cc\u9762\u5e76\u6ca1\u6709\u3002\u9700\u8981\u52a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1078","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/comments?post=1078"}],"version-history":[{"count":0,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1078\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/media?parent=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/categories?post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/tags?post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}