{"id":5214,"date":"2016-01-27T10:31:47","date_gmt":"2016-01-27T02:31:47","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5214"},"modified":"2018-08-23T23:13:51","modified_gmt":"2018-08-23T15:13:51","slug":"css-font-keyword-value-caption-menu-message-box-small-caption-status-bar","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2016\/01\/css-font-keyword-value-caption-menu-message-box-small-caption-status-bar\/","title":{"rendered":"CSS font\u5173\u952e\u5b57\u5c5e\u6027\u503c\u7684\u7b80\u5355\u7814\u7a76"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5214\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=5214<\/a><\/p>\n<h3>\u4e00\u3001font\u5173\u952e\u5b57\u521d\u63a2<\/h3>\n<p>\u6211\u4eec\u4f7f\u7528<code>font<\/code>\u5c5e\u6027\uff0c\u591a\u534a\u7528\u505a\u7f29\u5199\uff0c\u4f8b\u5982\uff1a<\/p>\n<p><button style=\"font:14px simsun;\">\u5b8b\u4f53-simsun-14px<\/button><\/p>\n<div class=\"zxx_code\">\n<pre>.font { font: 14px simsun; }<\/pre>\n<\/div>\n<p>\u5176\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>[ [ &lt;'font-style'> || &lt;'font-variant'> || &lt;'font-weight'> ]? &lt;'font-size'> [ \/ &lt;'line-height'> ]? &lt;'font-family'> ]<\/pre>\n<\/div>\n<p><code>||<\/code>\u8868\u793a\u6216\uff0c<code>?<\/code>\u4e3a\u6b63\u5219\u901a\u7528\u793a\u610f\uff0c\u8868\u793a<code>0<\/code>\u4e2a\u6216<code>1<\/code>\u4e2a\u3002\u4ed4\u7ec6\u89c2\u5bdf\u4e0a\u9762\u7684\u8bed\u6cd5\uff0c\u4f1a\u53d1\u73b0\uff0c<code>&lt;'font-size'&gt;<\/code>\u548c<code>&lt;'font-family'&gt;<\/code>\u540e\u9762\u6ca1\u6709\u95ee\u53f7\uff0c\u4e5f\u5c31\u662f\u662f\u5fc5\u987b\u7684\uff0c\u4e0d\u53ef\u7701\u7684\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c<code>font<\/code>\u7f29\u5199\u8981\u60f3\u751f\u6548\uff0c\u5b57\u4f53\u5927\u5c0f\u548c\u5b57\u4f53\u662f\u4e24\u4e2a\u5fc5\u4e0d\u53ef\u5c11\u7684\u5c5e\u6027\u503c\uff0c\u5176\u4ed6\u5b57\u91cd\uff0c\u5b57\u6837\u4ee5\u53ca\u884c\u9ad8\u90fd\u662f\u53ef\u7f3a\u7701\u7684\u3002<code>background<\/code>\u867d\u7136\u4e5f\u652f\u6301\u7f29\u5199\uff0c\u4f46\u662f\u5462\uff0c\u5176\u5e76\u6ca1\u6709\u9700\u89812\u4e2a\u5c5e\u6027\u503c\u540c\u65f6\u5b58\u5728\u7684\u9650\u5236\u3002<\/p>\n<p>\u4f46\u662f\u5462\uff0c\u6211\u4f30\u8ba1\u7edd\u5927\u591a\u6570\u5c0f\u4f19\u4f34\u90fd\u4e0d\u77e5\u9053\uff0c<code>font<\/code>\u5c5e\u6027\u8fd8\u652f\u6301\u5173\u952e\u5b57\u503c\uff0c\u5982\u4e0b\u8bed\u6cd5\u793a\u610f\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>font:caption | icon | menu | message-box | small-caption | status-bar<\/pre>\n<\/div>\n<p>\u5982\u679c\u4f60\u8bbe\u7f6e<code>font<\/code>\u5c5e\u6027\u4e3a\u4e0a\u9762\u4e2d\u7684\u4e00\u4e2a\u503c\uff0c\u5c31\u7b49\u540c\u4e8e\u8bbe\u7f6e<code>font<\/code>\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u8be5\u90e8\u4ef6\u5bf9\u5e94\u7684<code>font<\/code>\uff0c\u4e5f\u5c31\u662f\u8bf4\u76f4\u63a5\u4f7f\u7528\u7cfb\u7edf\u5b57\u4f53\u3002\u54a6\uff0c\u600e\u4e48\u6709\u4f3c\u66fe\u76f8\u8bc6\u7684\u611f\u89c9\uff0c\u5176\u5b9e\u6211\u4e4b\u524d\u6709\u4ecb\u7ecd\u8fc7\u7c7b\u4f3c\u7684\uff0c\u5c31\u662fCSS <code>color<\/code>, <code>background-color<\/code>\u7b49\u989c\u8272\u76f8\u5173\u5c5e\u6027\uff0c\u4e5f\u662f\u540c\u6837\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7cfb\u7edf\u989c\u8272\u7684\uff0c\u4f8b\u5982<code>Highlight<\/code>\u5173\u952e\u5b57\u5c31\u662f\u63a7\u4ef6\u9009\u4e2d\u65f6\u5019\u7684\u989c\u8272\uff0c\u5177\u4f53\u53ef\u53c2\u89c1\u6b64\u6587\uff1a\u201c<a href=\"\/\/www.zhangxinxu.com\/wordpress\/2015\/07\/know-css1-css3-color\/\">CSS1-CSS3 <color>\u989c\u8272\u77e5\u8bc6\u77e5\u591a\u5c11\uff1f<\/a>\u201d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/2016-01-25_002748.png\" width=\"287\" height=\"132\" alt=\"Highlight\u9ad8\u4eae\u989c\u8272\u793a\u610f\" class=\"alignnone\" \/><\/p>\n<p>\u90a3font\u8fd9\u91cc\u5173\u952e\u5b57\u53c8\u5bf9\u5e94\u7cfb\u7edf\u4e2d\u7684\u90a3\u4e9b\u90e8\u4f4d\u7684\u5b57\u4f53\u5462\uff1f<\/p>\n<h3>\u4e8c\u3001font\u5173\u952e\u5b57\u5bc6\u63a2<\/h3>\n<p>\u6839\u636e<a href=\"https:\/\/www.w3.org\/wiki\/CSS\/Properties\/font\">W3C\u5b98\u65b9\u7ef4\u57fa<\/a>\u7684\u89e3\u91ca\uff0c\u5404\u4e2a\u5173\u952e\u5b57\u7684\u542b\u4e49\u5982\u4e0b\uff1a<\/p>\n<dl>\n<dt>caption<\/dt>\n<dd>\u5305\u542b\u8bf4\u660e\u6587\u5b57\u63a7\u4ef6\u7684\u5b57\u4f53(\u5982\u6309\u94ae\uff0c\u4e0b\u62c9\u7b49)\u3002<\/dd>\n<\/dl>\n<dl>\n<dt>icon<\/dt>\n<dd>\u6807\u7b7e\u56fe\u6807\u4f7f\u7528\u7684\u5b57\u4f53\uff0c\u5f71\u54cd\u6240\u6709\u6587\u4ef6\u4ee5\u53ca\u6587\u4ef6\u5939\u540d\u79f0\u5b57\u4f53\u3002<\/dd>\n<\/dl>\n<dl>\n<dt>menu<\/dt>\n<dd>\u83dc\u5355\u4f7f\u7528\u7684\u5b57\u4f53(\u5982\u4e0b\u62c9\u83dc\u5355\u548c\u83dc\u5355\u5217\u8868)\u3002<\/dd>\n<\/dl>\n<dl>\n<dt>message-box<\/dt>\n<dd>\u6d88\u606f\u6846\u4f7f\u7528\u7684\u5b57\u4f53\u3002<\/dd>\n<\/dl>\n<dl>\n<dt>small-caption<\/dt>\n<dd>\u6807\u8bb0\u5c0f\u63a7\u4ef6\u4f7f\u7528\u7684\u5b57\u4f53\u3002<\/dd>\n<\/dl>\n<dl>\n<dt>status-bar<\/dt>\n<dd>\u7a97\u4f53\u72b6\u6001\u680f\u4f7f\u7528\u7684\u5b57\u4f53\u3002<\/dd>\n<\/dl>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>.menu { font: menu; }<\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528\u5173\u952e\u5b57\u4f5c\u4e3a\u5c5e\u6027\u503c\u7684\u65f6\u5019\uff0c\u5fc5\u987b\u662f\u72ec\u7acb\u7684\uff0c\u4e0d\u80fd\u6dfb\u52a0<code>font-family<\/code>\u6216\u8005<code>font-size<\/code>\u4e4b\u7c7b\uff0c\u8fd9\u548c<code>font<\/code>\u5c5e\u6027\u7f29\u5199\u4e0d\u662f\u4e00\u4e2a\u8def\u5b50\u7684\u3002\u5982\u679c\u53d1\u751f\u4e86\u6df7\u7528\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>.menu { font: 14px menu; }<\/pre>\n<p>\u5219\uff0c\u6b64\u65f6\u7684<code>menu<\/code>\u662f\u4f5c\u4e3a\u81ea\u5b9a\u4e49\u7684\u5b57\u4f53\u540d\u79f0\u5b58\u5728\u7684\uff0c\u800c\u4e0d\u662f\u8868\u793a\u7cfb\u7edf\u7684<code>menu<\/code>\u83dc\u5355\u5b57\u4f53\u3002<\/p>\n<p>\u6839\u636eDreamweaver\u7684\u663e\u793a\uff0c\u8fd8\u6709\u5982\u4e0b\u7cfb\u7edf\u5b57\u4f53\u5173\u952e\u5b57\uff08\u89c4\u8303\u4ee5\u5916\u7684\uff09\uff1a<br \/>\n<code>button<\/code>, <code>checkbox<\/code>, <code>checkbox-group<\/code>, <code>combo-box<\/code>, <code>desktop<\/code>, <code>dialog<\/code>, <code>document<\/code>, <code>field<\/code>, <code>hyperlink<\/code>, <code>list-menu<\/code>, <code>menu-item. menubar<\/code>, <code>outline-tree<\/code>, <code>password<\/code>, <code>pop-up-menu<\/code>, <code>pull-down-menu<\/code>, <code>push-button<\/code>, <code>radio-button<\/code>, <code>radio-group<\/code>, <code>range<\/code>, <code>signature<\/code>, <code>tab<\/code>, <code>tooltip<\/code>, <code>window<\/code>, <code>workspace<\/code>.<\/p>\n<h3>\u4e09\u3001font\u5173\u952e\u5b57\u73b0\u5f62<\/h3>\n<p>\u773c\u89c1\u4e3a\u5b9e\uff0c\u6709\u4e9b\u4e8b\u60c5\uff0c\u8981\u4eb2\u624b\u7ecf\u5386\u624d\u80fd\u6709\u611f\u89e6\u3002\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201601\/font-keywords.html\" target=\"_blank\">CSS font\u5173\u952e\u5b57\u5c5e\u6027\u503c\u8868\u73b0\u6d4b\u8bd5demo<\/a> <span class=\n\"g\">\uff08\u6bcf\u4e2a\u6d4b\u8bd5\u9879\u70b9\u51fb\u4f1a\u663e\u793a\u5e94\u7528\u7684\u5b57\u53f7\u5b57\u4f53\u548c\u884c\u9ad8\uff09<\/span><\/p>\n<p>\u9996\u5148\u662fwindow7\u7cfb\u7edf\u4e0b\uff0cChrome, FireFox\u548cIE\u6d4f\u89c8\u5668\u4e0b\u7684\u6548\u679c\u622a\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/2016-01-26_001245.png\" width=\"521\" height=\"521\" alt=\"window\u4e0bChrome\u6d4f\u89c8\u5668\u6548\u679c\" class=\"alignnone\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/2016-01-26_001402.png\" width=\"521\" height=\"521\" alt=\"window7\u4e0bFireFox\u6d4f\u89c8\u5668\" class=\"alignnone\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/2016-01-26_001508.png\" width=\"521\" height=\"521\" alt=\"window7 IE\u6d4f\u89c8\u5668\u4e0b\" class=\"alignnone\" \/><\/p>\n<p>\u5728iOS9\u7cfb\u7edf\u4e0b\uff0cChrome\u6d4f\u89c8\u5668\u548cSafari\u6d4f\u89c8\u5668\u6548\u679c\u4e3a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/cut-ios-chrome.png\" width=\"575\" height=\"496\" alt=\"iOS\u4e0bChrome\u6d4f\u89c8\u5668\u6548\u679c\" class=\"alignnone\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/cut-ios-safari.png\" width=\"567\" height=\"521\" alt=\"iOS\u4e0bSafari\u6d4f\u89c8\u5668\u7684\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p>\u4ece\u4e0a\u9762\u7684\u5b9e\u8df5\u7ed3\u679c\u53ef\u4ee5\u770b\u51fa\uff1a<\/p>\n<ol>\n<li>\u89c4\u8303\u6587\u6863\u91cc\u9762\u63d0\u5230\u7684\u5173\u952e\u5b57\u6240\u6709\u6d4f\u89c8\u5668\u90fd\u652f\u6301\u3002\u6839\u636e<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/font\" target=\"_blank\">MDN\u7684\u663e\u793a<\/a>\uff0c\u517c\u5bb9\u6027\u5e94\u8be5\u5982\u4e0b\uff1a<br \/>\n<table class=\"params_table\" cellspacing=\"1\">\n<tbody>\n<tr>\n<th>\u7279\u5f81<\/th>\n<th>Chrome<\/th>\n<th>Firefox (Gecko)<\/th>\n<th>Internet Explorer<\/th>\n<th>Opera<\/th>\n<th>Safari (WebKit)<\/th>\n<\/tr>\n<tr>\n<td>\u7f29\u5199<\/td>\n<td>1.0<\/td>\n<td>1.0 (1.0)<\/td>\n<td>3.0<\/td>\n<td>3.5<\/td>\n<td>1.0 (85)<\/td>\n<\/tr>\n<tr>\n<td>\u5b57\u4f53\u5b57\u4f53<\/td>\n<td>1.0<\/td>\n<td>1.0 (1.0)<\/td>\n<td>4.0<\/td>\n<td>6.0<\/td>\n<td>1.0 (85)<\/td>\n<\/tr>\n<tr>\n<td>\u652f\u6301<code>font-stretch<\/code>\u503c<\/td>\n<td><span title=\"Please update this with the earliest version of support.\" style=\"color: #888;\">(Yes)<\/span><\/td>\n<td><a href=\"\/en-US\/Firefox\/Releases\/43\" title=\"Released on 2015-12-15.\">43<\/a> (43)<\/td>\n<td><span title=\"Compatibility unknown; please update this.\" style=\"color: rgb(255, 153, 0);\">?<\/span><\/td>\n<td><span title=\"Compatibility unknown; please update this.\" style=\"color: rgb(255, 153, 0);\">?<\/span><\/td>\n<td><span title=\"Compatibility unknown; please update this.\" style=\"color: rgb(255, 153, 0);\">?<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f46\u662f\u5404\u4e2a\u6d4f\u89c8\u5668\u7684\u5177\u4f53\u652f\u6301\u6709\u4e9b\u7ec6\u8282\u5dee\u5f02\u3002<\/p>\n<p><strong>\u8865\u5145\u4e8e2017-03-26<\/strong><br \/>\n\u5927\u5bb6\u4f1a\u770b\u5230\u540c\u4e00\u64cd\u4f5c\u7cfb\u7edf\u4e0b\uff0cChrome\u6d4f\u89c8\u5668\u67093\u4e2a\u5173\u952e\u5b57\u548cFirefox\uff0cIE\u8fd9\u4e24\u4e2a\u6d4f\u89c8\u5668\u8868\u73b0\u4e0d\u4e00\u81f4\u3002\u6211\u8d77\u521d\u6ca1\u5728\u610f\uff0c\u540e\u6765\u7ecf\u8fc7\u66f4\u6539\u7cfb\u7edf\u5b57\u4f53\u624d\u53d1\u73b0\uff0c\u8fd93\u4e2a\u5173\u952e\u5b57\u4e0d\u662f\u5b9e\u65f6\u8ddf\u7740\u64cd\u4f5c\u7cfb\u7edf\u8d70\u7684\uff08\u4ec5\u9650\u4e8ewindows\u7cfb\u7edf\uff09\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u6211\u901a\u8fc7\u4e00\u5b9a\u7684\u624b\u6bb5\u628a\u6211\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u9ed8\u8ba4\u5b57\u4f53\u6539\u6389\uff0cIE\u548cFirefox\u6d4f\u89c8\u5668\u662f\u4f1a\u8ddf\u7740\u4e00\u8d77\u53d8\u7684\uff0c\u800cChrome\u6d4f\u89c8\u5668<code>caption<\/code>\uff0c<code>icon<\/code>\uff0c<code>message-box<\/code>\u8fd8\u662f\u56fa\u6267\u4e8e\u539f\u6765\u7684\u90a3\u51e0\u4e2a\u5b57\u4f53\uff0c\u5c31\u7b97\u91cd\u542f\u4e5f\u6ca1\u6709\u4f5c\u7528\uff0c\u611f\u89c9\u66f4\u50cf\u662f\u5b9e\u73b0\u4e0a\u7684\u95ee\u9898\u3002<span class=\"s\">&#8211;\u8865\u5145end&#8211;<\/span><\/p>\n<p>\u5bf9\u4e8e\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b57\u4f53\u8868\u73b0\u4e0d\u4e00\u6837\uff0c\u8fd9\u4e2a\u6211\u4eec\u662f\u9884\u6599\u4e4b\u4e2d\u7684\uff0c\u6bd5\u7adf\u4f7f\u7528\u7cfb\u7edf\u5b57\u4f53\uff0c\u4e0d\u540c\u7cfb\u7edf\u9ed8\u8ba4\u5b57\u4f53\u80af\u5b9a\u662f\u4e0d\u4e00\u6837\u7684\uff1b\u7136\u540e\u5b57\u4f53\u5927\u5c0f\u4e5f\u4e0d\u4e00\u6837\u3002\u4f8b\u5982\uff0cwindow\u4e0bChrome <code>caption<\/code>\u5b57\u4f53\u5927\u5c0f<code>16px<\/code>\uff0c\u800ciOS\u4e0b\u53ea\u6709<code>13px<\/code>. \u56e0\u6b64\uff0c\u5728\u5b9e\u9645\u4f7f\u7528\u65f6\u5019\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5728\u4e0b\u9762\u518d\u8bbe\u5b9a\u4e0b<code>font-size<\/code>\u5927\u5c0f\u6765\u4fdd\u8bc1\u4e00\u81f4\u6027\u3002\u6309\u7167\u9053\u7406\u8bb2\uff0c\u6211\u4eec\u76f4\u63a5\u8fd9\u6837\u8bbe\u7f6e\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n<pre>html {\n  font: menu;\n  font-size: 16px;\n}<\/pre>\n<p>\u4f46\u662f\uff0c\u5b9e\u9645\u4e0a\uff0cIE8\u6d4f\u89c8\u5668\u4f1a\u83ab\u540d\u5ffd\u7565\u8fd9\u91cc\u7684<code>font-size:16px<\/code>\uff0c\u56e0\u6b64\uff0c\u4e00\u822c\u90fd\u662f\u8fd9\u4e48\u5904\u7406\uff1a<\/p>\n<pre>html { font: menu; }\nbody { font-size: 16px; }<\/pre>\n<\/li>\n<li>\u975e\u89c4\u8303\u6807\u51c6\u7684\u5b57\u4f53\u57fa\u672c\u4e0a\u6d4f\u89c8\u5668\u90fd\u4e0d\u652f\u6301\uff0c\u53ea\u6709FireFox\u6d4f\u89c8\u5668\u652f\u6301\u4e00\u90e8\u5206\uff0c\u4f46\u662f\u9700\u8981\u6dfb\u52a0\u79c1\u6709\u524d\u7f00<code>-moz-<\/code>\uff0c\u4f8b\u5982\uff1a\n<div class=\"zxx_code\">\n<pre>font: -moz-button;<\/pre>\n<\/div>\n<p> \u56e0\u6b64\uff0c\u5b9e\u9645\u5e94\u7528\u4ef7\u503c\u4e0d\u5927\u3002<\/li>\n<li>\u53e6\u5916\uff0cwebkit\u6d4f\u89c8\u5668\u8fd8\u652f\u6301\u5176\u4ed6\u5173\u952e\u5b57\uff0c\u4f8b\u5982\uff1a<code><del datetime=\"2017-03-27T15:44:06+00:00\">font:-webkit-body<\/del><\/code>\uff0c\u7ecf\u6d4b\u8bd5\uff0c<code>-webkit-body<\/code>\u65e0\u6cd5\u8bc6\u522b\uff0c<code>-webkit-control<\/code>\u53ef\u4ee5\u8bc6\u522b\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201601\/2016-01-27_184437.png\" width=\"264\" height=\"173\" alt=\"webkit\u4e0b\u7684\u5173\u952e\u5b57\u5b57\u4f53\" class=\"alignnone\" \/><\/li>\n<\/ol>\n<h3>\u56db\u3001font\u5173\u952e\u5b57\u7684\u88e8\u76ca\u4ef7\u503c\u4e0e\u5e94\u7528\u573a\u666f<\/h3>\n<p>\u626f\u4e86\u8fd9\u4e48\u591a\uff0c\u90a3font\u5173\u952e\u5b57\u503c\u7684\u4ef7\u503c\u5982\u4f55\uff1f\u6709\u6ca1\u6709\u5408\u9002\u7684\u4f7f\u7528\u573a\u666f\u5462\uff1f\u6709\uff0c\u4e14\u975e\u5e38\u9700\u8981\u3002<\/p>\n<p>\u5728\u5f88\u4e45\u4ee5\u524d\uff0c\u4e5f\u5c31\u662fIE6,IE7\u58ee\u5e74\u7684\u65f6\u5019\uff0c\u5e73\u53f0\u8bbe\u5907\u6709\u9650\uff0c\u7cfb\u7edf\u652f\u6301\u7684\u4e2d\u6587\u5b57\u4f53\u4e5f\u6709\u9650\uff0c\u6211\u4eec\u57fa\u672c\u4e0a\u90fd\u662f\u5b8b\u4f53\u5230\u5e95\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5982\u4eca\uff0c\u5bf9\u5427\uff0c\u5fae\u8f6f\u96c5\u9ed1\uff0c\u601d\u6e90\u9ed1\u4f53\uff0c\u4ee5\u53caiOS\u7cfb\u7edf\u4f7f\u7528\u7684\u4ec0\u4e48\u9ed1\u4f53\uff0c\u624b\u673aAndroid\u4f7f\u7528\u7684\u9ed8\u8ba4\u5b57\u4f53\u4e4b\u7c7b\uff0c\u90fd\u6bd4\u5b8b\u4f53\u597d\u770b\uff0c\u800c\u540e\u8005\u4e2d\u6587\u5b57\u4f53\u8981\u6bd4\u5fae\u8f6f\u96c5\u9ed1\u66f4\u597d\u770b\u3002<\/p>\n<p>\u6211\u4eec\u76ee\u524d\u4e0d\u60f3\u4f7f\u7528\u5b8b\u4f53\uff0c\u57fa\u672c\u4e0a\u5c31\u662f\u4f7f\u7528\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>.font { font-family: 'microsoft yahei'; }<\/pre>\n<\/div>\n<p>\u4f46\u662f\uff0c\u6211\u5c31\u9047\u5230\u8fc7\u8fd9\u6837\u5b50\u7684\u9700\u6c42\uff0ciOS\u7cfb\u7edf\u4e0b\u4e0d\u8981\u4f7f\u7528\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\uff0c\u4e0d\u597d\u770b\uff0c\u6ca1\u6709\u81ea\u5e26\u7684\u4e2d\u6587\u82f1\u6587\u5b57\u4f53\u597d\u770b\uff0c\u5e0c\u671biOS\u7cfb\u7edf\u4e0b\u4e0d\u8981\u4f7f\u7528\u5fae\u8f6f\u96c5\u9ed1\u5b57\u4f53\u3002\u600e\u4e48\u6574\uff1fJS\u6d4f\u89c8\u5668\u5224\u65ad\uff0cCSS hack\u641e\u8d77\uff1f<\/p>\n<p>\u4e0d\u8981\u8fd9\u4e48\u70e6\u4e86\uff0110\u591a\u5e74\u524d\u6d4f\u89c8\u5668\u5c31\u5df2\u7ecf\u652f\u6301\u4e86\u8fd9\u79cd\u529f\u80fd\uff0c\u5c31\u662f<code>font<\/code>\u503c\u76f4\u63a5\u662f\u7cfb\u7edf\u5173\u952e\u5b57\u3002<\/p>\n<p>\u5bf9\u7167\u6211\u4eec\u4e0a\u9762\u6d4b\u8bd5\u7684\u6700\u7ec8\u6548\u679c\u56fe\u4eec\uff0c\u6211\u4eec\u53ef\u4ee5\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre><del datetime=\"2017-03-26T15:06:01+00:00\">body {\n    font: menu;\n    font-size: 16px;\n}<\/del><\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre><del datetime=\"2017-03-26T15:06:01+00:00\">body {\n    font: small-caption;\n    font-size: 16px;\n}<\/del><\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre><del datetime=\"2017-03-26T15:06:01+00:00\">body {\n    font: status-bar;\n    font-size: 16px;\n}<\/del><\/pre>\n<\/div>\n<p><strong>\u4fee\u6539\u4e8e2017-03-27 \u517c\u5bb9IE8<\/strong><\/p>\n<div class=\"zxx_code\">\n<pre>html { font: menu; }\nbody { font-size: 16px; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>html { font: small-caption; }\nbody { font-size: 16px; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>html { font: status-bar; }\nbody { font-size: 16px; }<\/pre>\n<\/div>\n<p>\u5c31\u53ef\u4ee5\u5b9e\u73b0<del datetime=\"2017-03-27T15:57:47+00:00\">window\u7cfb\u7edf\u4e0b\u5fae\u8f6f\u96c5\u9ed1\uff0c\u5176\u4ed6\u7cfb\u7edf\u4f7f\u7528\u9ed8\u8ba4\u5b57\u4f53\u7684\u6548\u679c<\/del>\u5404\u4e2a\u6d4f\u89c8\u5668\u90fd\u4f7f\u7528\u7cfb\u7edf\u5b57\u4f53\u7684\u6548\u679c\u4e86\uff0c\u4f8b\u5982\uff0c\u5728\u6211\u7684windows 7\u7cfb\u7edf\u4e0b\uff0c\u9875\u9762\u5c31\u662f\u5fae\u8f6f\u96c5\u9ed1\uff1b\u800c\u82f9\u679c\u7535\u8111\u4e0a\uff08\u867d\u7136\u6211\u5b89\u88c5\u4e86\u5fae\u8f6f\u96c5\u9ed1\uff09\u5219\u662f\u82f9\u679c\u81ea\u5df1\u597d\u770b\u7684\u5b57\u4f53\u663e\u793a\u3002<\/p>\n<p><strong>\u8865\u5145\u4e8e2017-03-26<\/strong><\/p>\n<p>\u6700\u540e\uff0c\u6211\u8981\u5bf9<code>font<\/code>\u5173\u952e\u5b57\u5c5e\u6027\u503c\u7684\u7528\u6cd5\u505a\u4e00\u4e2a\u70b9\u8bc4\uff1a<\/p>\n<p>\u8ba9\u7f51\u9875\u7684\u5b57\u4f53\u8ddf\u7cfb\u7edf\u8d70\uff0c\u5bf9\u4e8e\u8bbe\u8ba1\u5e08\u800c\u8a00\uff0c\u5176\u5b9e\u662f\u4e00\u4e2a\u6bd4\u8f83\u5192\u9669\u7684\u505a\u6cd5\uff0c\u56e0\u4e3a\u6700\u7ec8\u5448\u73b0\u7684\u5b57\u4f53\u662f\u4e0d\u53ef\u63a7\u7684\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u67d0\u5973\u751f\u975e\u5e38\u559c\u6b22\u53ef\u7231\u98ce\u683c\uff0c\u4e8e\u662f\u5c31\u628a\u5979\u7684\u7535\u8111\u4e3b\u9898\u53d8\u6210\u4e86\u975e\u5e38\u53ef\u7231\u7684\u98ce\u683c\uff0c\u83dc\u5355\u680f\u7684\u5b57\u4f53\u5168\u90e8\u53d8\u6210\u90a3\u79cd\u5f88\u53ef\u7231\u7684\u5b57\u4f53\uff0c\u6b64\u65f6\uff0c<code>font:menu<\/code>\u6240\u5448\u73b0\u7684\u5c31\u4e0d\u662f\u201c\u5fae\u8f6f\u96c5\u9ed1\u201d\uff0c\u800c\u662f\u8fd9\u4e2a\u7528\u6237\u5b9a\u4e49\u7684\u201c\u53ef\u7231\u5b57\u4f53\u201d\uff0c\u8fd9\u53ef\u80fd\u4e0d\u662f\u8bbe\u8ba1\u5e08\u60f3\u770b\u5230\u7684\uff0c\u56e0\u4e3a\u5f80\u5f80\u4f1a\u8ddf\u81ea\u5df1\u7684\u7f51\u9875\u8bbe\u8ba1\u98ce\u683c\u4e0d\u4e00\u81f4\u3002\u4f46\u662f\uff0c\u6211\u8981\u8f6c\u6298\uff0c\u4e07\u4e00\u8fd9\u662f\u7528\u6237\u60f3\u770b\u5230\u7684\u5462\uff1f\u65e2\u7136\u7528\u6237\u628a\u81ea\u5df1\u7684\u4e3b\u9898\u8bbe\u4e3a\u8be5\u5b57\u4f53\uff0c\u90a3\u5c31\u8bf4\u660e\u8fd9\u4e2a\u7528\u6237\u5bf9\u8fd9\u4e2a\u5b57\u4f53\u5e76\u4e0d\u6392\u65a5\uff0c\u800c\u662f\u559c\u6b22\u3002\u5f53\u5979\u6d4f\u89c8\u7f51\u9875\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u5c31\u4f60\u7684\u7f51\u7ad9\u5448\u73b0\u51fa\u4e86\u5979\u559c\u6b22\u90a3\u79cd\u5b57\u4f53\uff0c\u4f60\u8bf4\u4f1a\u4e0d\u4f1a\u7ed9\u7528\u6237\u4e00\u79cd\u201c\u4f60\u61c2\u6211\u7684\u5fc3\u201d\u7684\u611f\u89c9\u5462\uff0c\u5bf9\u4e8e\u7528\u6237\u800c\u8a00\uff0c\u53cd\u800c\u6210\u4e86\u4e00\u4e2a\u60c5\u611f\u5316\u7684\u8bbe\u8ba1\uff01<\/p>\n<p>\u53e6\u5916\uff0c\u8ba9\u7f51\u9875\u7684\u5b57\u4f53\u8ddf\u7cfb\u7edf\u8d70\uff0c\u8fd8\u6709\u4e00\u4e2a\u66f4\u52a0\u957f\u8fdc\u7684\u597d\u5904\uff0c\u968f\u7740\u8f6f\u4ef6\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u6211\u4eec\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u9ed8\u8ba4\u4e2d\u6587\u5b57\u4f53\u4e00\u5b9a\u662f\u8d8a\u6765\u8d8a\u597d\u770b\uff0c\u5982\u679c\u7f51\u9875\u7684<code>font-family<\/code>\u5b9a\u6b7b\u4e3a\u67d0\u4e2a\u5b57\u4f53\uff0c\u7528\u6237\u662f\u65e0\u6cd5\u53ca\u65f6\u4eab\u53d7\u5230\u65b0\u7cfb\u7edf\u65b0\u5b57\u4f53\u5e26\u6765\u7684\u6109\u60a6\u7684\u89c6\u89c9\u611f\u53d7\u7684\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0cOS X\u7684\u9ed8\u8ba4\u4e2d\u6587\u5b57\u4f53\u5176\u5b9e\u5df2\u7ecf\u53d8\u8fc7\u597d\u591a\u6b21\u4e86\uff0c\u4f8b\u5982\u4f60\u4eca\u5929\u5199\u4e86\u4e2a\u9875\u9762\uff0c\u5b57\u4f53\u8bbe\u7f6e\u4e3a\u5f88\u6f6e\u7684\u201c\u82f9\u65b9\u201d\uff0c\u8fc7\u4e24\u5e74\u8bf4\u4e0d\u5b9a\u4f1a\u51fa\u6765\u66f4\u597d\u7684\u540d\u53eb\u201c\u68a8\u65b9\u201d\u5b57\u4f53\uff0c\u6211\u6253\u5305\u7968\uff0c\u7edd\u5bf9\u662f\u4e0d\u4f1a\u8ddf\u8fdb\u7684\uff0c\u56e0\u4e3a\u5927\u591a\u6570\u7684\u7ebf\u4e0a\u9879\u76ee\u7ef4\u62a4\u90fd\u4e0d\u4f1a\u7ba1<code>font-family<\/code>\u8fd9\u79cd\u8fb9\u8fb9\u89d2\u89d2\u7684\u4e8b\u60c5\u7684\uff0c\u56e0\u6b64\uff0c\u5c31\u7b97\u5f88\u591a\u5e74\u8fc7\u53bb\u4e86\uff0c\u7f51\u7ad9\u4f9d\u7136\u4f7f\u7528\u7684\u662f\u8001\u5b57\u4f53\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f7f\u7528\u7684\u662f<code>font<\/code>\u5173\u952e\u5b57\u5c5e\u6027\u503c\uff0c\u5b8c\u5168\u4e0d\u4f1a\u6709\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u7f51\u7ad9\u5b57\u4f53\u65f6\u65f6\u523b\u523b\u4e0e\u65f6\u4ff1\u8fdb\u3002<\/p>\n<h3>\u4e94\u3001\u672c\u6587\u5df2\u5b8c\u7ed3\uff0c\u6b64\u5904\u7eaf\u5410\u69fd<\/h3>\n<p>\u81ea\u4ece\u6709\u4e86\u5a03\uff0c\u6548\u7387\u5c31\u662f\u5dee\u3002\u5c31\u8fd9\u7bc7\u9e21\u6bdb\u6587\u7ae0\uff0c\u6574\u4e2a\u6211\u4e09\u4e2a\u665a\u4e0a\u7684\u65f6\u95f4\uff0c\u8981\u662f\u5e74\u8f7b\u65f6\u5019\uff0c\u54d7\u54d7\u54d7\u4e00\u4e2a\u665a\u4e0a\u5c31\u53ef\u4ee5\u641e\u51fa\u6765\u3002\u8fd9\u56de\u5bb6\u8981\u5148\u62b1\u5a03\uff0c\u6ca1\u529e\u6cd5\u3002\u6765\uff0c\u7ed9\u53d4\u53d4\u963f\u59e8\u4eec\u95ee\u4e2a\u597d\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/psb.jpg\" width=\"172\" height=\"240\" alt=\"\u5927\u5bb6\u597d\" class=\"alignnone\" \/><\/p>\n<p>\u6700\u8fd1\u7f51\u7ad9\u5f88\u591a\u7ec6\u8282\u8fdb\u884c\u4e86\u63d0\u5347\uff0c\u4e0d\u77e5\u9053\u7ec6\u5fc3\u7684\u4f60\u6709\u6ca1\u6709\u6ce8\u610f\u5230\u3002\u653e\u5f03\u4e86\u5bf9IE6\u7684\u652f\u6301\uff0c\u6b63\u6587\u5b57\u53f7\u53d8\u5927\u4e86\uff0c\u4f7f\u7528\u4e86\u7cfb\u7edf\u5b57\u4f53caption\uff0c\u7248\u6743\u7533\u660e\u66f4\u6e05\u6670\u4e0d\u4f1a\u548c\u6b63\u6587\u6df7\u5728\u4e00\u8d77\u4e86\uff0c\u6587\u7ae0\u53d1\u5e03\u65f6\u95f4\u8bbf\u95ee\u91cf\u7b49\u6570\u636e\u524d\u7f6e\u4e86\uff0c\u5e7f\u544a\u4f4d\u5728\u9875\u9762\u6eda\u52a8\u8db3\u591f\u9ad8\u7684\u65f6\u5019\u4f1a\u8ddf\u968f\uff0c\u53bb\u9664\u4e86\u4e00\u4e9b\u4e0d\u5fc5\u8981\u7684\u5206\u9694\u7ebf\uff0c\u641c\u7d22\u53d8\u5927\u53d8\u957f\u4e86\uff0c\u4fa7\u8fb9\u680f\u4e5f\u589e\u52a0\u4e86\u641c\u7d22\uff0c\u76d8\u6d3b\u6574\u4e2a\u5185\u90e8\uff0c\u4e2a\u4eba\u63cf\u8ff0\u6587\u5b57\u4e5f\u5fae\u6539\u4e86\u4e0b\u3002<\/p>\n<p>\u4e4b\u524d\u4e5f\u6709\u7ec6\u8282\u8c03\u6574\uff0c\u4f8b\u5982\uff0c\u989c\u8272\u63d0\u4eae\u4e86\u4e00\u4e9b\uff0c\u5e95\u90e8\u680f\u6241\u5e73\u5316\uff0c\u53f3\u4fa7\u680f\u53ef\u4ee5\u6536\u8d77\u7b49\u3002<\/p>\n<p>\u5f88\u591a\u5c0f\u4f19\u4f34\u8bf4\u6211\u535a\u5ba2\u957f\u5f97\u6bd4\u8f83\u4e11\uff0c\u5176\u5b9e\u662f\u8fd9\u6837\u7684\uff0c\u56e0\u4e3a\u7cbe\u529b\u6709\u9650\uff0c\u5982\u679c\u8ffd\u968f\u6d41\u884c\u8d8b\u52bf\uff0c\u52bf\u5fc5\u8fc7\u4e86\u51e0\u5e74\u5c31\u53c8\u8981\u91cd\u65b0\u6574\u4e2a\u6a21\u5b50\uff0c\u592a\u7d2f\u5fc3\u4e86\uff0c\u56e0\u6b64\uff0c\u8d70\u7b80\u6d01\u4f20\u7edf\u4e4b\u98ce\uff0c\u5c31\u7b97\u65f6\u4ee3\u53d8\u5316\uff0c\u4e5f\u4e0d\u81f3\u4e8e\u6709\u660e\u663e\u7684\u8fc7\u65f6\u4e4b\u611f\uff0c\u4ee5\u4e0d\u53d8\u5e94\u4e07\u53d8\uff0c\u5c0f\u7ec6\u8282\u4e00\u70b9\u4e00\u70b9\u4f18\u5316\u4e0e\u63d0\u5347\uff0c\u901a\u8fc7\u6570\u636e\u9a8c\u8bc1\u6548\u679c\uff0c\u8fd9\u5c31\u662f\u6211\u8fd0\u8425\u81ea\u5df1\u535a\u5ba2\u7684\u4ea7\u54c1\u4e4b\u9053\u3002<\/p>\n<p>\u77e5\u9053\u6211\u4e3a\u4ec0\u4e48\u8fd8\u6ca1\u7761\uff0c\u5728\u5410\u69fd\u5199\u6ca1\u8425\u517b\u7684\u6587\u5b57\u5417\uff1f\u56e0\u4e3a\u641e\u5e7a\u86fe\u5b50\u7684\uff0c\u673a\u623f\u8fc1\u79fb\uff0c\u73b0\u5728\u7ad9\u70b9\u8bbf\u95ee\u4e0d\u4e86\uff0c\u6587\u7ae0\u6ca1\u6cd5\u4fdd\u5b58\u53d1\u5e03\u2026\u2026\u6211\u5fc3\u4e2d\u5927\u5199\u7684\u201c\u670d\u201d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/2016-01-27_002654.png\" width=\"585\" height=\"131\" alt=\"\u673a\u623f\u7ef4\u62a4\" class=\"alignnone\" \/><\/p>\n<p>\u7fcc\u65e5\uff0c\u4e00\u5927\u65e9\u5c41\u98a0\u5c41\u98a0\u722c\u8d77\u6765\uff0c\u5c45\u7136\u8fd8\u6ca1\u6062\u590d\uff0c\u5fc3\u4e2d\u7684\u201c\u670d\u201d<code>transform<\/code> <code>scale<\/code>\u4e862\u500d\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/blog\/201601\/2016-01-27_102623.png\" width=\"517\" height=\"120\" alt=\"\u53cd\u9988\" class=\"alignnone\" \/><\/p>\n<p>\u5f97\uff0c\u5148\u53bb\u4e0a\u73ed\u5427\uff0c\u522b\u8fdf\u5230\u4e86\uff01<\/p>\n<p>\u508d\u665a\uff1a\u82b1\u94b1\u5347\u7ea7\u4e86\u4e0b\u535a\u5ba2\uff0c\u8bbf\u95ee\u91cf\u8c8c\u4f3chold\u4e0d\u4f4f\u4e86~<\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u5305\u542b\u811a\u672c\u884c\u4e3a\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5214\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=5214<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ont\u5c5e\u6027\u503c\u9664\u4e86\u652f\u6301\u5e38\u7528\u7684\u7f29\u5199\uff0c\u8fd8\u652f\u6301\u7cfb\u7edf\u5173\u952e\u5b57\uff0c\u8fd9\u79cd\u7528\u6cd5\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\u975e\u5e38\u7684\u6709\u7528\u3002\u672c\u6587\u5c31\u5e26\u4f60\u524d\u53bb\u4e00\u63a2\u7a76\u7adf\u3002\u6709demo\u6709\u6e90\u4ee3\u7801\u6709\u622a\u56fe\uff0c\u5e0c\u671b\u672c\u6587\u7684\u5185\u5bb9\u80fd\u591f\u5bf9\u60a8\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[416,417,418,258,123],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5214"}],"collection":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/comments?post=5214"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5214\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=5214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=5214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=5214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}