{"id":112,"date":"2010-11-13T20:44:01","date_gmt":"2010-11-13T20:44:01","guid":{"rendered":"http:\/\/blog.yyhcw.com\/post\/112.html"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T07:54:17","slug":"","status":"publish","type":"post","link":"http:\/\/blog.yyhcw.com\/post\/112.html","title":{"rendered":"\u5728\u7f51\u9875\u4e2d\u5d4c\u5165\u81ea\u5b9a\u4e49\u5b57\u4f53\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>\u5b57\u4f53\u4f7f\u7528\u662f\u7f51\u9875\u8bbe\u8ba1\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u7ecf\u5e38\u5730\uff0c\u6211\u4eec\u5e0c\u671b\u5728\u7f51\u9875\u4e2d\u4f7f\u7528\u67d0\u4e00\u7279\u5b9a\u5b57\u4f53\uff0c\u4f46\u662f\u8be5\u5b57\u4f53\u5e76\u975e\u4e3b\u6d41\u64cd\u4f5c\u7cfb\u7edf\u7684\u5185\u7f6e\u5b57\u4f53\uff0c\u8fd9\u6837\u7528\u6237\u5728\u6d4f\u89c8\u9875\u9762\u7684\u65f6\u5019\u5c31\u6709\u53ef\u80fd\u770b\u4e0d\u5230\u771f\u5b9e\u7684\u8bbe\u8ba1\u3002\u7f8e\u5de5\u8bbe\u8ba1\u5e08\u6700\u5e38\u505a\u7684\u529e\u6cd5\u662f\u628a\u60f3\u8981\u7684\u6587\u5b57\u505a\u6210\u56fe\u7247\uff0c\u8fd9\u6837\u505a\u6709\u51e0\u4e2a\u660e\u663e\u7f3a\u9677\uff1a1. \u4e0d\u53ef\u80fd\u5927\u8303\u56f4\u7684\u4f7f\u7528\u8be5\u5b57\u4f53\uff1b2. \u56fe\u7247\u5185\u5bb9\u76f8\u5bf9\u4f7f\u7528\u6587\u5b57\u4e0d\u6613\u4fee\u6539\uff1b3. \u4e0d\u5229\u4e8e\u7f51\u7ad9SEO\uff08\u4e3b\u6d41\u641c\u7d22\u5f15\u64ce\u4e0d\u4f1a\u5c06\u56fe\u7247alt\u5185\u5bb9\u4f5c\u4e3a\u5224\u65ad\u7f51\u9875\u5185\u5bb9\u76f8\u5173\u6027\u7684\u6709\u6548\u56e0\u7d20\uff09\u3002\u7f51\u7edc\u4e0a\u6709\u4e00\u4e9b\u4f7f\u7528sIFR\u6280\u672f\u3001\u6216javascript\/flash hack\u7684\u65b9\u6cd5\uff0c\u4f46\u5b9e\u73b0\u8d77\u6765\u6216\u7e41\u7410\uff0c\u6216\u6709\u7f3a\u9677\u3002\u4e0b\u9762\u8981\u8bb2\u7684\u662f\u5982\u4f55\u53ea\u901a\u8fc7CSS\u7684@font-face\u5c5e\u6027\u6765\u5b9e\u73b0\u5728\u7f51\u9875\u4e2d\u5d4c\u5165\u4efb\u610f\u5b57\u4f53\u3002<\/p>\n<p><strong>\u7b2c\u4e00\u6b65<\/strong><\/p>\n<p>\u83b7\u53d6\u8981\u4f7f\u7528\u5b57\u4f53\u7684\u4e09\u79cd\u6587\u4ef6\u683c\u5f0f\uff0c\u786e\u4fdd\u80fd\u5728\u4e3b\u6d41\u6d4f\u89c8\u5668\u4e2d\u90fd\u80fd\u6b63\u5e38\u663e\u793a\u8be5\u5b57\u4f53\u3002<\/p>\n<ul>\n<li>.TTF\u6216.OTF\uff0c\u9002\u7528\u4e8eFirefox 3.5\u3001Safari\u3001Opera<\/li>\n<li>.EOT\uff0c\u9002\u7528\u4e8eInternet Explorer 4.0+<\/li>\n<li>.SVG\uff0c\u9002\u7528\u4e8eChrome\u3001IPhone<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u8981\u89e3\u51b3\u7684\u662f\u5982\u4f55\u83b7\u53d6\u5230\u67d0\u79cd\u5b57\u4f53\u7684\u8fd9\u4e09\u79cd\u683c\u5f0f\u6587\u4ef6\u3002\u4e00\u822c\u5730\uff0c\u6211\u4eec\u5728\u624b\u5934\u4e0a\uff08\u6216\u5728\u8bbe\u8ba1\u8d44\u6e90\u7ad9\u70b9\u5df2\u7ecf\u627e\u5230\uff09\u6709\u8be5\u5b57\u4f53\u7684\u67d0\u79cd\u683c\u5f0f\u6587\u4ef6\uff0c\u6700\u5e38\u89c1\u7684\u662f.TTF\u6587\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u901a\u8fc7\u8fd9\u79cd\u6587\u4ef6\u683c\u5f0f\u8f6c\u6362\u4e3a\u5176\u4f59\u4e24\u79cd\u6587\u4ef6\u683c\u5f0f\u3002\u5b57\u4f53\u6587\u4ef6\u683c\u5f0f\u7684\u8f6c\u6362\u53ef\u4ee5\u901a\u8fc7\u7f51\u7ad9FontsQuirrel\u6216onlinefontconverter\u63d0\u4f9b\u7684\u5728\u7ebf\u5b57\u4f53\u8f6c\u6362\u670d\u52a1\u83b7\u53d6\u3002\u8fd9\u91cc\u63a8\u8350\u7b2c\u4e00\u4e2a\u7ad9\u70b9\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u9009\u62e9\u9700\u8981\u7684\u5b57\u7b26\u751f\u6210\u5b57\u4f53\u6587\u4ef6\uff08\u5728\u670d\u52a1\u7684\u6700\u540e\u4e00\u4e2a\u9009\u9879\uff09\uff0c\u8fd9\u6837\u5c31\u5927\u5927\u7f29\u51cf\u4e86\u5b57\u4f53\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u4f7f\u5f97\u672c\u65b9\u6848\u66f4\u5177\u5b9e\u7528\u6027\u3002<\/p>\n<p><strong>\u7b2c\u4e8c\u6b65<\/strong><\/p>\n<p>\u83b7\u53d6\u5230\u4e09\u79cd\u683c\u5f0f\u7684\u5b57\u4f53\u6587\u4ef6\u540e\uff0c\u4e0b\u4e00\u6b65\u8981\u5728\u6837\u5f0f\u8868\u4e2d\u58f0\u660e\u8be5\u5b57\u4f53\uff0c\u5e76\u5728\u9700\u8981\u7684\u5730\u65b9\u4f7f\u7528\u8be5\u5b57\u4f53\u3002<\/p>\n<p>\u5b57\u4f53\u58f0\u660e\u5982\u4e0b\uff1a<\/p>\n<p><span class=\"code\">@font-face {<br \/>&nbsp;font-family: 'fontNameRegular';<br \/>&nbsp;src: url('fontName.eot');<br \/>&nbsp;src: local('fontName Regular'), <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; local('fontName'),&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url('fontName.woff') format('woff'), <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url('fontName.ttf') format('truetype'), <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url('fontName.svg#fontName') format('svg');<br \/>}&nbsp; <br \/>\/*\u5176\u4e2dfontName\u66ff\u6362\u4e3a\u4f60\u7684\u5b57\u4f53\u540d\u79f0*\/<\/span><\/p>\n<p>\u5728\u9875\u9762\u4e2d\u9700\u8981\u7684\u5730\u65b9\u4f7f\u7528\u8be5\u5b57\u4f53\uff1a<\/p>\n<p><span class=\"code\">p { font: 13px fontNameRegular, Arial, sans-serif; }<br \/>h1{font-family: fontNameRegular}<\/span><\/p>\n<p>\u6216\u8005<\/p>\n<p><span class=\"code\">&lt;p style=&quot;font-family: fontNameRegular&quot;&gt;\u63ac\u6c34\u6708\u5728\u624b\uff0c\u843d\u82b1\u9999\u6ee1\u8863&lt;\/p&gt;<\/span><\/p>\n<p>\u4e0b\u9762\u662f\u6211\u901a\u8fc7\u4e0a\u9762\u4e24\u6b65\u505a\u7684\u793a\u4f8b\uff1a<\/p>\n<p>[code]&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&quot;&gt;<br \/>&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt;<br \/>&lt;head&gt;<br \/>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;<br \/>&lt;title&gt;\u5728\u7f51\u9875\u4e2d\u5d4c\u5165\u4efb\u610f\u5b57\u4f53\u7684\u5b8c\u6574\u89e3\u51b3\u65b9\u6848 - CSS9.NET&lt;\/title&gt;<br \/>&lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/www.blueidea.com\/articleimg\/2009\/12\/7263\/style.css&quot; \/&gt;<br \/>&lt;style type=&quot;text\/css&quot;&gt;<br \/>@font-face {<br \/>&nbsp;font-family: 'hakuyoxingshu7000Regular';<br \/>&nbsp;src: url('http:\/\/www.blueidea.com\/articleimg\/2009\/12\/7263\/7000.eot');<br \/>&nbsp;src: local('hakuyoxingshu7000 Regular'), local('hakuyoxingshu7000'), url('http:\/\/www.blueidea.com\/articleimg\/2009\/12\/7263\/7000.ttf') format('truetype'), url('http:\/\/www.blueidea.com\/articleimg\/2009\/12\/7263\/7000.svg#hakuyoxingshu7000') format('svg');<br \/>}<br \/>#poem{<br \/>&nbsp; font-size:45px;<br \/>&nbsp;&nbsp;&nbsp;&nbsp; font-family:hakuyoxingshu7000Regular;<br \/>&nbsp;&nbsp;&nbsp;&nbsp; text-align:center;<br \/>}<br \/>#poem p{height:30px;line-height:30px;}<br \/>&lt;\/style&gt;<br \/>&lt;\/head&gt;<br \/>&lt;body&gt;<br \/>&lt;div id=&quot;testdiv&quot;&gt;<br \/>&nbsp;&lt;h1&gt;\u5728\u7f51\u9875\u4e2d\u5d4c\u5165\u4efb\u610f\u5b57\u4f53\u7684\u5b8c\u6574\u89e3\u51b3\u65b9\u6848 - CSS9.NET&lt;\/h1&gt;<br \/>&nbsp;&lt;h2&gt;\u8bbf\u95ee\u539f\u6587\uff1a &lt;a href=&quot;http:\/\/css9.net\/css-font-face-solution\/&quot;&gt;http:\/\/css9.net\/css-font-face-solution\/&lt;\/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;\u540e\u4e16\u7684\u6211\u4eca\u751f\u7684\u4f60-\u540e\u4e16\u4eca\u751f - &lt;a href=http:\/\/blog.yyhcw.com&gt;blog.yyhcw.com&lt;\/a&gt;&lt;\/h2&gt;<br \/>&nbsp;&lt;div id=&quot;poem&quot;&gt;<br \/>&lt;h3&gt;\u4e91\u4e3a\u7d20\u98df&lt;\/h3&gt;<br \/>&lt;p&gt;\u4eac\u57ce\u6709\u540c\u7a97\uff0c\u76f8\u7ea6\u7d20\u98df\u9601\u3002&lt;\/p&gt;&lt;p&gt;\u542c\u8005\u72b9\u672a\u5c3d\uff0c\u8a00\u8005\u8bed\u5df2\u591a\u3002&lt;\/p&gt;&lt;p&gt;\u6ee1\u5ea7\u7686\u53cb\u670b\uff0c\u7545\u8c08\u4f55\u6c11\u79d1\u3002&lt;\/p&gt;&lt;p&gt;\u7985\u4e2d\u5bc4\u5c0f\u8bed\uff0c\u614e\u8a00\u4e14\u67d4\u548c\u3002&lt;\/p&gt;<br \/>&lt;\/div&gt;<\/p>\n<p>&lt;\/body&gt;<br \/>&lt;\/html&gt;[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"\u5b57\u4f53\u4f7f\u7528\u662f\u7f51\u9875\u8bbe\u8ba1\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u7ecf\u5e38\u5730\uff0c\u6211\u4eec\u5e0c\u671b\u5728\u7f51\u9875\u4e2d\u4f7f\u7528\u67d0\u4e00\u7279\u5b9a\u5b57\u4f53\uff0c\u4f46\u662f\u8be5\u5b57\u4f53\u5e76\u975e\u4e3b\u6d41\u64cd\u4f5c\u7cfb\u7edf\u7684\u5185 \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"views":269,"_links":{"self":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/112"}],"collection":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/comments?post=112"}],"version-history":[{"count":0,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/112\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}