{"id":1215,"date":"2012-06-05T14:37:31","date_gmt":"2012-06-05T06:37:31","guid":{"rendered":"http:\/\/www.gaigaiming.com\/?p=1215"},"modified":"2012-06-05T14:37:31","modified_gmt":"2012-06-05T06:37:31","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e8%8b%b1%e6%96%87%e7%ab%99%e6%94%b9%e6%88%90%e6%b1%89%e8%af%ad%e5%b0%b1%e4%b8%8d%e6%98%be%e7%a4%ba%ef%bc%88%e8%a7%a3%e5%86%b3cufon-js%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.gaigaiming.com\/index.php\/2012\/06\/05\/%e4%b8%ba%e4%bb%80%e4%b9%88%e8%8b%b1%e6%96%87%e7%ab%99%e6%94%b9%e6%88%90%e6%b1%89%e8%af%ad%e5%b0%b1%e4%b8%8d%e6%98%be%e7%a4%ba%ef%bc%88%e8%a7%a3%e5%86%b3cufon-js%ef%bc%89\/","title":{"rendered":"\u4e3a\u4ec0\u4e48\u82f1\u6587\u7ad9\u6539\u6210\u6c49\u8bed\u5c31\u4e0d\u663e\u793a\uff08\u89e3\u51b3cufon.js\uff09"},"content":{"rendered":"<h1 id=\"detailArticleTitle_ptkaiapt4bxy_baiduscarticle\" class=\"pcs-article-title_ptkaiapt4bxy_baiduscarticle\"><\/h1>\n<div class=\"pcs-article-c_ptkaiapt4bxy_baiduscarticle\">\n<div class=\"pcs-article-toos_ptkaiapt4bxy_baiduscarticle\">\n<div class=\"note\"><\/div>\n<\/div>\n<div id=\"detailArticleContent_ptkaiapt4bxy_baiduscarticle\" class=\"pcs-article-content_ptkaiapt4bxy_baiduscarticle\">\n<p><strong>\u8d77\u56e0\uff1a<\/strong>\u4e0a\u5468\uff0c\u670b\u53cb\u53d1\u8fc7\u6765\u4e00\u4e2awebsite\u8bf4\u91cc\u9762\u76842.html\u663e\u793a\u4e0d\u51fa\u6765\u6c49\u5b57\uff0c\u6539\u597d\u5c31\u663e\u793a\u4e0d\u51fa\u6765\u5b57\u4f53\u3002<\/p>\n<p>\u7136\u540e\u4eca\u5929\u5728w3cfuns\u7fa4\u66b4\u98ce\u96e8\u95ee\u4e3a\u4ec0\u4e48\u6539\u597d\u7684\u6c49\u5b57\u663e\u793a\u4e0d\u51fa\u6765\uff0c\u6709\u597d\u591a\u4eba\u5728\u8bf4\u53ef\u80fd\u662f\u7f16\u7801\u95ee\u9898\u3002\u4e4b\u524d\u6211\u9047\u89c1\u8fc7\u4e00\u6b21\uff0c\u67e5\u627e\u5230\u95ee\u9898\u662fcufon\u554a~\u6545\u6574\u7406\u4e00\u4e0b\uff0c\u8fd9\u6837\u7684\u95ee\u9898\u6709\u7684\u65f6\u5019\u4f1a\u4f7f\u4eba\u5f88\u7ea0\u7ed3\u7684~<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u539f\u7406<\/strong>\uff1a\u6587\u4ef6\u4e2d\u8c03\u7528\u7684cufon\u5bf9\u4e8e\u82f1\u6587\u7279\u6b8a\u5b57\u4f53\u8fdb\u884c\u4e86\u6e32\u67d3\uff0c\u5bf9\u4e8e\u6c49\u5b57\u6c34\u571f\u4e0d\u670d\u5bfc\u81f4\u6c49\u5b57\u663e\u793a\u4e0d\u51fa\u6765\u3002\u6216\u8005\u8d85\u7ea7\u6162\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>&lt;!&#8211;&lt;script\u00a0src=&#8221;js\/cufon-yui.js&#8221;\u00a0type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script\u00a0src=&#8221;js\/Liberation_Sans.font.js&#8221;\u00a0type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<br \/>\n&lt;script\u00a0type=&#8221;text\/javascript&#8221;&gt;<br \/>\nCufon.replace(&#8216;span&#8217;);<br \/>\nCufon.replace(&#8216;li&#8217;);<br \/>\nCufon.replace(&#8216;h1&#8217;);<br \/>\nCufon.replace(&#8216;p&#8217;);<br \/>\n&lt;\/script&gt;&#8211;&gt;<\/p>\n<p>\u6216\u8005js\u5185\u90e8\u7684\u8c03\u7528<\/p>\n<p>$.include(&#8216;js\/cufon-yui.js&#8217;)<br \/>\n$.include(&#8216;js\/cufon-replace.js&#8217;)<br \/>\n$.include(&#8216;js\/Droid_Serif_5F400.font.js&#8217;)<br \/>\n$.include(&#8216;js\/Droid_Serif_italic_5F400.font.js&#8217;)<\/p>\n<p>\u7684\u95ee\u9898\u3002<\/p>\n<p>\u597d\u4e86\u4e0a\u9762\u7684\u770b\u6e05\u695a\u4e86\u4e48\uff0c\u54c8\u54c8\u770b\u6e05\u695a\u4e86\u5c31\u628a\u4ed6\u4eec\u6ce8\u91ca\u6389\u3002<\/p>\n<p>ok\uff0c\u89e3\u51b3\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u7b80\u5355\u8bf4\u5c31\u662f\u4f60\u76f4\u63a5\u641c\u7d22cufon\u5e26\u6709\u8fd9\u4e2a\u5173\u952e\u5b57\u7684\u8c03\u7528\uff08\u4e0d\u8bba\u662f\u7f51\u9875\u5934\u90e8\u7684\u8c03\u7528\u8fd8\u662fjs\u5185\u90e8\u7684\u8c03\u7528\uff09\u90fd\u53bb\u6389\u5c31\u597d\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u76f8\u5173\u7684\u89e3\u91ca<\/strong>:\u8bf7\u53c2\u8003cufon-yui.js\u6846\u67b6\u4ee5\u53cacufon\u767e\u79d1\u3002<\/p>\n<p>cufon-yui.js\u00a0\u6e32\u67d3\u7279\u6b8a\u5b57\u4f53\u7684\uff0c\u8ddf\u5916\u90e8\u8c03\u7528\u7279\u6b8a\u5b57\u4f53\u6709\u5173\u7cfb\u3002\u4e00\u822c\u56fd\u5185\u7684\u7279\u6b8a\u5b57\u4f53\u89e3\u51b3\u7528\u56fe\u7247\u505a\u597d\u4e0a\u4f20\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Cufon<\/strong>\u662f\u4e00\u4e2a\u7528\u6765\u66ff\u4ee3\u00a0sIFR\u00a0\u6846\u67b6\uff0c\u4f5c\u4e3a\u4e00\u79cd\u57fa\u4e8e\u00a0JavaScript\u00a0\u7684\u7f51\u9875\u5b57\u4f53\u5f15\u5165\u65b9\u6848\uff0c\u00a0<strong>Cufon<\/strong>\u7684\u6838\u5fc3\u529f\u80fd\u662f\u901a\u8fc7\u4e00\u4e2a\u540d\u4e3a\u201ccufon-yui.js\u201d\u00a0\u7684\u00a0JavaScript\u00a0\u7c7b\u5e93\uff0c\u63d0\u4f9b\u7ed9\u5f00\u53d1\u4eba\u5458\u7684\u3002\u5728web\u5f00\u53d1\u4e2d\uff0c\u7ecf\u5e38\u9762\u5bf9\u7684\u4e00\u79cd\u201c\u51b2\u7a81\u201d\uff0c\u5373\u201c\u5b57\u4f53\uff08Font\u00a0Family\uff09\u51b2\u7a81\u201d\u3002<\/p>\n<p>\u901a\u5e38\u7684\u8fd9\u4e00\u51b2\u7a81\u603b\u662f\u7206\u53d1\u4e8e\u00a0Web\u00a0\u9875\u9762\u7684\u8bbe\u8ba1\u8005\uff08Designer\uff09\u548c\u5f00\u53d1\u8005\uff08Coder\uff09\u4e4b\u95f4\u3002\u5728\u5f88\u591a\u573a\u5408\u4e0b\uff0cWeb\u00a0\u9875\u9762\u7684\u8bbe\u8ba1\u8005\u90fd\u4f1a\u503e\u5411\u4e8e\u5728\u4ed6\u4eec\u7684\u9875\u9762\u8bbe\u8ba1\u7a3f\u4e2d\uff0c\u4e3a\u6587\u5b57\u9644\u52a0\u4f7f\u7528\u4e00\u4e9b\u201c\u7279\u6b8a\u201d\u7684\u5b57\u4f53\u548c\u7279\u6548\uff0c\u4ee5\u6b64\u6765\u5c55\u793a\u4ed6\u4eec\u5353\u8d8a\u7684\u8bbe\u8ba1\u80fd\u529b\u3002\u6bd4\u5982\u8bbe\u8ba1\u4e00\u4e2a\u516c\u53f8\u7684Logo\uff0c\u56fe\u7247\u4e0a\u7684\u4e00\u4e9b\u7279\u6b8a\u5b57\u4f53\u662f\u4eceps\u5b57\u5e93\u4e2d\u8c03\u51fa\u7684\uff0c\u5f53\u7136\u8fd9\u4e9b\u6587\u5b57\u5728\u56fe\u7247\u4e0a\u663e\u793a\u80af\u5b9a\u662f\u6ca1\u6709\u95ee\u9898\u7684\uff0c\u4f46\u662f\u5982\u679c\u8981\u5728\u7f51\u9875\u4e2d\u7528\u6587\u672c\u6765\u663e\u793a\u8fd9\u4e9b\u6548\u679c\uff0c\u5c31\u662f\u4f1a\u8ba9\u5f00\u53d1\u4eba\u5458\u6293\u72c2\u4e86\uff0c\u56e0\u4e3a\u6d4f\u89c8\u5668\u5e76\u4e0d\u652f\u6301\u6240\u6709\u7684\u5b57\u4f53\uff0c\u8fd9\u79cd\u60c5\u51b5Cufon\u5c31\u4f1a\u5927\u663e\u8eab\u624b\u4e86\u3002<\/p>\n<p>Cufon\u00a0\u6280\u672f\u7684\u5b9e\u73b0\u7b56\u7565\u5176\u5b9e\u5c31\u662f\u4ee5\u4e00\u5b9a\u6807\u51c6\uff0c\u5728\u7f51\u9875\u76f8\u5173\u4f4d\u7f6e\u4e0a\u201c\u753b\u201d\u51fa\u4e86\u6240\u9700\u8981\u663e\u793a\u7684\u6587\u5b57\u5b57\u7b26\uff0c\u5e76\u540c\u65f6\u66ff\u6362\u539f\u5148\u533a\u57df\u6240\u9700\u8981\u663e\u793a\u7684\u6587\u5b57\u3002<\/p>\n<p>\u501f\u52a9\u4e8e\u6d4f\u89c8\u5668\u6240\u63a8\u51fa\u7684\u4e13\u6709\u9875\u9762\u7ed8\u753b\u65b9\u6848\uff0c\u5982\u00a0VML\u3001Canvas\u00a0\u548c\u00a0SVG\u00a0\u7b49\uff0c\u6765\u8fdb\u884c\u9875\u9762\u7684\u7ed8\u753b\u3002<\/p>\n<p><strong>Cufon<\/strong>\u5b57\u4f53\u6587\u4ef6\uff0c\u5c31\u662f\u6309\u7167\u00a0Cufon\u00a0\u6240\u63d0\u51fa\u7684\u5b57\u4f53\u63cf\u8ff0\u6807\u51c6\uff0c\u521b\u5efa\u5f62\u6210\u7684\u4e00\u79cd\u5b57\u4f53\u6587\u4ef6\u3002<\/p>\n<p>[\u00a0Cufon\u00a0generate\u00a0]\u6ce8\uff1a\u82f1\u6587\u7f51\u7ad9\uff0cCufon\u5b57\u4f53\u5728\u7ebf\u751f\u6210\u5de5\u5177\uff0c\u7f51\u7ad9\u4e0a\u4f20\u5927\u5c0f\u6709\u9650\u5236\uff0c\u4e14\u56fd\u5916\u4e0a\u4f20\u901f\u5ea6\u6162\uff0c\u5236\u4f5c\u4e2d\u6587\u5b57\u4f53\u7684\u6709\u56f0\u96be;<\/p>\n<p>[\u5fae\u8f6f\u96c5\u9ed1\u4e0b\u8f7d]\u63a8\u8350\uff1aCufon\u5b57\u4f53\uff0c\u53ef\u4ee5\u81ea\u5df1\u9009\u62e9\u5408\u9002\u7684\u6c49\u5b57\uff0c\u6700\u5c0f\u5316\u60a8\u7684JS\u6587\u4ef6\uff01<\/p>\n<p>[Cufon\u4e2d\u6587\u5b57\u4f53\u535a\u5ba2]\u4e00\u4e9b\u7591\u95ee\uff0cCufon\u5b57\u4f53\u4f7f\u7528\u4ea4\u6d41\uff01<\/p>\n<p><strong>Tip:<\/strong>\u5efa\u8bae\u60a8\u6700\u5c0f\u5316\u9009\u62e9\u60a8\u7684\u5b57\u6bcd\u5b57\u7b26\u7684\u8303\u56f4\uff0c\u4ee5\u7f29\u5c0fjs\u6587\u4ef6\u7684\u5927\u5c0f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u76f8\u5173\u8d44\u6599\u00a0<a href=\"http:\/\/www.cufon-font.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.cufon-font.com\/<\/a><\/p>\n<p>\u6211\u662f\u53cb\u60c5\u5c0f\u94fe\u63a5\uff0c<a href=\"http:\/\/hi.baidu.com\/constraint19\/item\/9e8daaf994ff1f6f3d148533\" target=\"_blank\" rel=\"noopener\">\u6c49\u5b57\u7279\u6b8a\u5b57\u4f53\u5982\u4f55\u4e0d\u7528\u56fe\u7247\uff0c\u76f4\u63a5\u7528\u6587\u5b57\u663e\u793a<\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8d77\u56e0\uff1a\u4e0a\u5468\uff0c\u670b\u53cb\u53d1\u8fc7\u6765\u4e00\u4e2awebsite\u8bf4\u91cc\u9762\u76842.html\u663e\u793a\u4e0d\u51fa\u6765\u6c49\u5b57\uff0c\u6539\u597d\u5c31\u663e\u793a\u4e0d\u51fa\u6765\u5b57\u4f53\u3002 \u7136\u540e\u4eca\u5929\u5728 [&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-1215","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1215","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=1215"}],"version-history":[{"count":0,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/posts\/1215\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/media?parent=1215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/categories?post=1215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gaigaiming.com\/index.php\/wp-json\/wp\/v2\/tags?post=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}