{"id":4848,"date":"2015-06-28T15:01:54","date_gmt":"2015-06-28T07:01:54","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=4848"},"modified":"2015-06-28T15:01:54","modified_gmt":"2015-06-28T07:01:54","slug":"about-letter-x-of-css","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2015\/06\/about-letter-x-of-css\/","title":{"rendered":"\u5b57\u6bcd&#8217;x&#8217;\u5728CSS\u4e16\u754c\u4e2d\u7684\u89d2\u8272\u548c\u6545\u4e8b"},"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=4848\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=4848<\/a><\/p>\n<h3>\u4e00\u3001\u4e0d\u8d77\u773c\u7684\u5b57\u6bcd&#8217;x&#8217;<\/h3>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u8fd9\u91cc\u7684\u5b57\u6bcd<code>'x'<\/code>\u5c31\u662f26\u4e2a\u82f1\u6587\u5b57\u6bcd<code>a<\/code>,<code>b<\/code>,<code>c<\/code>,<code>...<\/code>\u4e2d\u7684<code>x<\/code>.<\/p>\n<p>\u7531\u4e8e\u81ea\u8eab\u5f62\u6001\u7684\u4e00\u4e9b\u7279\u6b8a\u6027\uff0c\u56e0\u6b64\uff0c\u8fd9\u4e2a\u5c0f\u5c0f\u7684\u4e0d\u8d77\u773c\u7684\u5b57\u6bcd\u62c5\u5f53\u5927\u4efb\uff0c\u5728CSS\u4e16\u754c\u4e2d\u626e\u6f14\u4e86\u4e00\u4e2a\u91cd\u8981\u7684\u89d2\u8272\u3002<\/p>\n<p>\u6709\u4eba\u53ef\u80fd\u7684\u7b2c\u4e00\u53cd\u5e94\u662f\uff1a\u201c\u6211\u77e5\u9053\uff0c\u53ef\u4ee5\u6a21\u62df\u5173\u95ed\u6309\u94ae\u7684\u90a3\u4e2a\u53c9\u53c9\u6548\u679c\uff01\u201d<\/p>\n<p>\u8fd9\u4f4d\u540c\u5b66\u601d\u7ef4\u5f88\u6d3b\u8dc3\uff0c\u4f46\u662f\u5462\uff0c\u672c\u6587\u6240\u8981\u4ecb\u7ecd\u7684\u5b57\u6bcd<code>'x'<\/code>\u548cCSS\u7684\u5173\u7cfb\u4e0d\u662f\u5947\u5de7\u6deb\u6280\uff0c\u800c\u662f\u6b63\u7edf\u7684\u672f\u8bed\u4e0a\u7684\u7d27\u5bc6\u8054\u7cfb\u3002<\/p>\n<h3>\u4e8c\u3001\u5b57\u6bcd&#8217;x&#8217;\u4e0eCSS\u4e2d\u7684\u57fa\u7ebf<\/h3>\n<p>\u5728\u5404\u79cd\u5185\u8054\u76f8\u5173\u6a21\u578b\u4e2d\uff0c\u51e1\u662f\u6d89\u53ca\u5230\u5782\u76f4\u65b9\u5411\u7684\u6392\u7248\u6216\u8005\u5bf9\u9f50\u7684\uff0c\u90fd\u79bb\u4e0d\u5f00\u6700\u6700\u57fa\u672c\u7684\u57fa\u7ebf(<code>baseline<\/code>)\u3002\u4f8b\u5982\uff0c<code>line-height<\/code>\u884c\u9ad8\u7684\u5b9a\u4e49\u5c31\u662f\u4e24\u57fa\u7ebf\u7684\u95f4\u8ddd\uff1b<code>vertical-align<\/code>\u7684\u9ed8\u8ba4\u503c\u5c31\u662f\u57fa\u7ebf\uff1b\u5176\u4ed6\u4e2d\u7ebf\u9876\u7ebf\u4e00\u7c7b\u7684\u5b9a\u4e49\u4e5f\u79bb\u4e0d\u5f00\u57fa\u7ebf\uff1b\u57fa\u7ebf\u751a\u81f3\u884d\u751f\u51fa\u4e86\uff1a<\/p>\n<ol>\n<li>&#8220;alphabetic&#8221; baseline: \u201c\u5b57\u6bcd\u201d\u57fa\u7ebf &#8211; \u82f1\u6587<\/li>\n<li>&#8220;hanging&#8221; baseline: \u201c\u60ac\u6302\u201d\u57fa\u7ebf &#8211; \u5370\u5ea6\u6587<\/li>\n<li>&#8220;ideographic&#8221; baseline: \u201c\u8868\u610f\u201d\u57fa\u7ebf &#8211; \u4e2d\u6587<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201506\/baselines.png\" width=\"457\" height=\"89\" alt=\"\u884d\u751f\u7684\u57fa\u7ebf\u6982\u5ff5\" class=\"alignnone\" \/><\/p>\n<p>\u90a3\u5927\u5bb6\u77e5\u9053\u57fa\u7ebf\u53c8\u662f\u5982\u4f55\u5b9a\u4e49\u7684\u5417\uff1f<\/p>\n<p>\u54c8\uff0c\u57fa\u7ebf\u7684\u5b9a\u4e49\u5c31\u79bb\u4e0d\u5f00\u672c\u6587\u7684\u7537\u4e3b\u89d2<code>'x'<\/code>.<\/p>\n<p><strong>\u5b57\u6bcdx\u7684\u4e0b\u8fb9\u7f18(\u7ebf)\u5c31\u662f\u6211\u4eec\u7684\u57fa\u7ebf\u3002<\/strong><\/p>\n<p>\u5bf9\uff0c\u662f\u5b57\u6bcd<code>x<\/code>, \u4e0d\u662f\u5b57\u6bcd<code>s<\/code>\u4e4b\u7c7b\u4e0b\u9762\u6709\u5c3e\u5df4\u7684\u5b57\u6bcd\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201506\/2015-06-28_105734.png\" width=\"506\" height=\"234\" alt=\"\u57fa\u7ebf\u4e0e\u5b57\u6bcdx\" class=\"alignnone\" \/><\/p>\n<h3>\u4e09\u3001\u5b57\u6bcd&#8217;x&#8217;\u4e0eCSS\u4e2d\u7684x-height<\/h3>\n<p>\u5b57\u6bcd<code>'x'<\/code>\u4e0eCSS\u7684\u6545\u4e8b\u8fdc\u4e0d\u6b62\u57fa\u7ebf\u8fd9\u4e48\u7b80\u5355\u3002CSS\u4e2d\u6709\u4e00\u4e2a\u6982\u5ff5\u53eb\u505a<code>\"x-height\"<\/code>, \u6307\u7684\u662f\u5b57\u6bcd<code>'x'<\/code>\u7684\u9ad8\u5ea6\u3002<\/p>\n<p>\u6709\u4eba\u53ef\u80fd\u4f1a\u7591\u95ee\u4e86\uff0c\u201c\u4e00\u4e2a\u5b57\u6bcd\u7684\u9ad8\u5ea6\u8ddf\u6211CSS\u5e03\u5c40\u6392\u7248\u6709\u534a\u6bdb\u94b1\u5173\u7cfb\u554a\uff1f\u201d<\/p>\n<p>\u5b9e\u9645\u4e0a\u5173\u7cfb\u53ef\u5927\u4e86\u3002<\/p>\n<p>\u9996\u5148\uff0c\u9700\u8981\u4e86\u89e3\u4e0b<code>\"x-height\"<\/code>\u7684\u542b\u4e49\uff0c\u901a\u4fd7\u8bb2\uff0c<code>\"x-height\"<\/code>\u5c31\u662f\u6307\u7684\u5c0f\u5199\u5b57\u6bcd<code>'x'<\/code>\u7684\u9ad8\u5ea6\uff1b\u672f\u8bed\u63cf\u8ff0\u5c31\u662f\u57fa\u7ebf\u548c\u7b49\u5206\u7ebf[mean line](\u4e5f\u79f0\u4f5c\u4e2d\u7ebf[midline])\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002<\/p>\n<p>\u7ef4\u57fa\u4e0a\u6709\u8fd9\u4e48\u4e2a\u793a\u610f\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201506\/410px-Typography_Line_Terms.svg.png\" width=\"410\" height=\"110\" alt=\"\u7ef4\u57fa\u767e\u79d1x-height\u793a\u610f\u56fe\" class=\"alignnone\" \/><\/p>\n<p><code>\"x-height\"<\/code>\u7684\u793a\u610f\u8303\u56f4\u4e00\u76ee\u4e86\u7136\uff0c\u4e86\u7136\u4e8e\u5fc3\uff0c\u4e8e\u5fc3\u4e0d\u5fcd\uff0c\u4e0d\u5fcd\u76f4\u89c6\u3002<\/p>\n<p>\u4e0a\u9762\u56fe\u4e2d\u8fd8\u51fa\u73b0\u4e86\u5176\u4ed6\u7684\u540d\u8bcd\uff0c\u8fd9\u91cc\u7b80\u5355\u8bf4\u4e0b\u6211\u7684\u7406\u89e3\uff1a<\/p>\n<ul>\n<li>ascender height: \u4e0a\u4e0b\u7ebf\u9ad8\u5ea6<\/li>\n<li>cap height: \u5927\u5199\u5b57\u6bcd\u9ad8\u5ea6<\/li>\n<li>median: \u4e2d\u7ebf<\/li>\n<li>descender height: \u4e0b\u884c\u7ebf\u9ad8\u5ea6<\/li>\n<\/ul>\n<p>\u7136\u540e\uff0cCSS\u4e2d\u6709\u4e9b\u5c5e\u6027\u503c\u7684\u5b9a\u4e49\u5c31\u548c\u8fd9\u4e2a<code>\"x-height\"<\/code>\u7684\u6709\u5173\uff0c\u6700\u5178\u578b\u7684\u4ee3\u8868\u5c31\u662f\uff1a<code>vertical-align: middle<\/code>.<\/p>\n<p>\u8fd9\u91cc\u7684<code>middle<\/code>\u662f\u4e2d\u95f4\u7684\u610f\u601d\uff0c\u6ce8\u610f\uff0c\u8ddf\u4e0a\u9762\u7684<code>median<\/code>\u4e2d\u7ebf\u4e0d\u662f\u4e00\u4e2a\u610f\u601d\u3002\u89c4\u8303\u4e2d\u5bf9\u5782\u76f4\u5bf9\u9f50\u7684<code>middle<\/code>\u8fd9\u4e48\u89e3\u91ca\u7684\uff1a<\/p>\n<blockquote><p><strong>middle:<\/strong> This identifies a baseline that is offset from the alphabetic baseline in the shift-direction by 1\/2 the value of the x-height font characteristic. The position of this baseline may be obtained from the font data or, for fonts that have a font characteristic for &#8220;x-height&#8221;, it may be computed using 1\/2 the &#8220;x-height&#8221;. Lacking either of these pieces of information, the position of this baseline may be approximated by the &#8220;central&#8221; baseline.<\/p><\/blockquote>\n<p>\u5927\u610f\u5c31\u662f\uff1a<code>middle<\/code>\u6307\u7684\u662f\u57fa\u7ebf\u5f80\u4e0a1\/2 <code>\"x-height\"<\/code>\u9ad8\u5ea6\u3002\u6211\u4eec\u53ef\u4ee5\u8fd1\u4f3c\u8111\u8865\u6210\u5b57\u6bcd<code>x<\/code>\u4ea4\u53c9\u70b9\u90a3\u4e2a\u4f4d\u7f6e\u3002<\/p>\n<p>\u6709\u6b64\u53ef\u89c1\uff0c<code>vertical-align: middle<\/code>\u5e76\u4e0d\u662f\u7edd\u5bf9\u7684\u5782\u76f4\u5c45\u4e2d\u5bf9\u9f50\uff0c\u6211\u4eec\u5e73\u5e38\u770b\u5230\u7684<code>middle<\/code>\u6548\u679c\u53ea\u662f\u4e00\u79cd\u8fd1\u4f3c\u7684\u6548\u679c\u3002\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u56e0\u4e3a\u4e0d\u540c\u7684\u5b57\u4f53\uff0c\u5176\u5728\u884c\u5185\u76d2\u5b50\u4e2d\u7684\u4f4d\u7f6e\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u6bd4\u65b9\u8bf4&#8217;\u5fae\u8f6f\u96c5\u9ed1&#8217;\u5c31\u662f\u4e00\u4e2a\u5b57\u7b26\u4e0b\u6c89\u6bd4\u8f83\u660e\u663e\u7684\u5b57\u4f53\uff0c\u6240\u6709\u5b57\u7b26\u7684\u4f4d\u7f6e\u76f8\u6bd4\u5176\u4ed6\u5b57\u4f53\u8981\u504f\u4e0b\u4e00\u70b9\u3002\u8981\u662f<code>vertical-align: middle<\/code>\u662f\u76f8\u5bf9\u5bb9\u5668\u4e2d\u5206\u7ebf\u5bf9\u9f50\uff0c\u5475\u5475\uff0c\u4f60\u4f1a\u53d1\u73b0\u56fe\u6807\u548c\u6587\u5b57\u4e0d\u5728\u4e00\u6761\u7ebf\u4e0a\uff0c\u800c\u76f8\u5bf9\u4e8e\u5b57\u7b26<code>x<\/code>\u7684\u4e2d\u5fc3\u4f4d\u7f6e\u5bf9\u9f50\uff0c\u6211\u4eec\u8089\u773c\u770b\u4e0a\u53bb\u5c31\u597d\u50cf\u548c\u6587\u5b57\u5c45\u4e2d\u5bf9\u9f50\u4e86\u3002<\/p>\n<h3>\u56db\u3001\u5b57\u6bcd&#8217;x&#8217;\u4e0eCSS\u4e2dex<\/h3>\n<p>\u5b57\u6bcd<code>'x'<\/code>\u884d\u751f\u51fa\u4e86<code>\"x-height\"<\/code>\u6982\u5ff5\uff0c\u5e76\u5728\u8fd9\u4e2a\u57fa\u7840\u4e0a\u6df1\u8015\u7ec6\u4f5c\uff0c\u8fdb\u4e00\u6b65\u884d\u751f\u51fa\u4e86<code>ex<\/code>, \u6ce8\u610f\uff0c\u8fd9\u91cc\u7684<code>ex<\/code>\u4e0d\u662f\u524d\u4efb\u7684\u610f\u601d\uff0c\u800c\u662f\u5730\u5730\u9053\u9053CSS\u4e2d\u7684\u4e00\u4e2a\u5c3a\u5bf8\u5355\u4f4d\u3002<\/p>\n<p>\u5927\u5bb6\u53ef\u80fd\u90fd\u542c\u8fc7\u7528\u8fc7<code>em<\/code>, <code>px<\/code>\u751a\u81f3\u7528\u8fc7<code>rem<\/code>, \u8bf4\u4e0d\u5b9a\u5bf9\u8fdeIE6\u90fd\u8001\u65e9\u652f\u6301\u7684<code>ex<\/code>\u5355\u4f4d\u5374\u5f88\u964c\u751f\u3002<\/p>\n<p><code>ex<\/code>\u662fCSS\u4e2d\u7684\u4e00\u4e2a\u76f8\u5bf9\u5355\u4f4d\uff0c\u6307\u7684\u7684\u662f\u5c0f\u5199\u5b57\u6bcd<code>x<\/code>\u7684\u9ad8\u5ea6\uff0c\u6ca1\u9519\uff0c\u5c31\u662f\u6307<code>\"x-height\"<\/code>.<\/p>\n<p>\u90a3\u8fd9\u4e2a\u5355\u4f4d\u6709\u4ec0\u4e48\u5b9e\u9645\u7528\u9014\u5462\uff1f\u6211\u53ea\u80fd\u5475\u5475\uff0c\u8c8c\u4f3c\u6ca1\u5565\u5b9e\u9645\u7528\u9014\uff0c\u5426\u5219\u4e5f\u4e0d\u4f1a\u8fd9\u4e48\u4e0d\u4e3a\u4eba\u6240\u77e5\u3002<\/p>\n<p>\u662f\u8fd9\u6837\u5417\uff1f<\/p>\n<h3>\u4e94\u3001\u5355\u4f4dex\u7684\u4ef7\u503c\u4e0e\u5b9e\u7528\u6027<\/h3>\n<p>\u5b58\u5728\u5fc5\u6709\u4ef7\u503c\u3002\u6211\u4eec\u7ec6\u7ec6\u601d\u8003\u5b57\u6bcd<code>\"x\"<\/code>\u5728CSS\u4e16\u754c\u4e2d\u626e\u6f14\u7684\u89d2\u8272\uff0c\u5c31\u4f1a\u53d1\u73b0<code>ex<\/code>\u7684\u4ef7\u503c\u6240\u5728\u3002<\/p>\n<p>\u9996\u5148\uff0c\u9700\u8981\u660e\u786e\u4e00\u70b9\uff0c\u867d\u7136\u8bf4\u5c3a\u5bf8\u5355\u4f4d\u7684\u4f5c\u7528\u662f\u9650\u5b9a\u5143\u7d20\u7684\u5c3a\u5bf8\uff0c\u4f46\u662f\uff0c\u7531\u4e8e\u5b57\u6bcd<code>\"x\"<\/code>\u53d7\u5b57\u4f53\u548c\u73af\u5883\u5f71\u54cd\u5927\uff0c\u53c2\u8003\u6027\u592a\u4f4e\uff0c\u56e0\u6b64<code>ex<\/code>\u663e\u7136\u4e0d\u592a\u9002\u5408\u505a\u8fd9\u4e2a\u3002\u90a3\u95ee\u9898\u6765\u4e86\uff0c<code>ex<\/code>\u8fde\u81ea\u5df1\u7684\u672c\u804c\u5de5\u4f5c\u90fd\u505a\u4e0d\u597d\uff0c\u96be\u9053\u8fd8\u6307\u671b\u5176\u526f\u4e1a\u5f00\u6302\uff1f<\/p>\n<p>\u6ca1\u9519\uff0c<code>ex<\/code>\u7684\u4ef7\u503c\u5c31\u5728\u5176\u526f\u4e1a\u4e0a\u2014\u2014\u4e0d\u53d7\u5b57\u4f53\u5b57\u53f7\u5f71\u54cd\u7684\u5185\u8054\u5143\u7d20\u7684\u5782\u76f4\u5c45\u4e2d\u5bf9\u9f50\u6548\u679c\u3002<\/p>\n<p>\u6211\u4eec\u90fd\u77e5\u9053\uff0c\u5185\u8054\u5143\u7d20\u9ed8\u8ba4\u662f\u57fa\u7ebf\u5bf9\u9f50\u7684\uff0c\u800c\u57fa\u7ebf\u5c31\u662f<code>x<\/code>\u7684\u5e95\u90e8\uff0c\u800c<code>1ex<\/code>\u5c31\u662f\u4e00\u4e2a<code>x<\/code>\u7684\u9ad8\u5ea6\u3002\u8bbe\u60f3\u4e0b\uff0c\u5047\u5982\u6211\u4eec\u56fe\u6807\u9ad8\u5ea6\u5c31\u662f<code>1ex<\/code>, \u540c\u65f6\u80cc\u666f\u56fe\u7247\u5c45\u4e2d\uff0c\u5c82\u4e0d\u662f\u56fe\u6807\u548c\u6587\u5b57\u5929\u7136\u5782\u76f4\u5c45\u4e2d\uff0c\u800c\u4e14\uff0c\u5b8c\u5168\u4e0d\u53d7\u5b57\u4f53\u548c\u5b57\u53f7\u7684\u5f71\u54cd\u3002\u56e0\u4e3a<code>ex<\/code>\u5c31\u662f\u4e00\u4e2a\u76f8\u5bf9\u4e8e\u5b57\u4f53\u5b57\u53f7\u7684\u5355\u4f4d\u3002<\/p>\n<p>\u6587\u5b57\u8868\u8ff0\u82cd\u767d\uff0c\u6211\u4eec\u770b\u4e2a\u4f8b\u5b50\uff0c\u4e0b\u56fe\u6240\u793a\u7684\u6587\u5b57\u540e\u9762\u8ddf\u4e2a\u5c0f\u4e09\u89d2\u56fe\u6807\u7684\u6548\u679c\u662f\u975e\u5e38\u5e38\u89c1\u7684\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201506\/2015-06-28_143139.png\" width=\"125\" height=\"50\" alt=\"\u6587\u5b57\u548c\u5c0f\u4e09\u89d2\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p>\u73b0\u5728\uff0c\u8981\u8ba9\u8be5\u56fe\u6807\u548c\u6587\u5b57\u4e2d\u95f4\u4f4d\u7f6e\u6392\u6574\u9f50\uff0c\u4f60\u662f\u5982\u4f55\u5b9e\u73b0\uff1f<\/p>\n<p>\u5c3a\u5bf8\u556a\u556a\uff0c\u7136\u540e<code>vertical-align: middle<\/code>?<\/p>\n<p>\u8fd9\u6837\u867d\u7136\u4e5f\u6709\u6548\u679c\uff0c\u4f46\u662f\uff0c\u5b9e\u9645\u4e0a\u5570\u55e6\u4e86\uff0c\u501f\u52a9<code>ex<\/code>\u5355\u4f4d\uff0c\u6211\u4eec\u76f4\u63a5\u501f\u52a9\u9ed8\u8ba4\u7684<code>baseline<\/code>\u5bf9\u9f50\u5c31\u53ef\u4ee5\u5b9e\u73b0\u6211\u4eec\u7684\u6548\u679c\uff01<\/p>\n<p>\u5982\u4e0bCSS\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>.icon-arrow {\n    display: inline-block;\n    width: 20px;\n    height: <mark>1ex<\/mark>;\n    background: url(arrow.png) no-repeat center;\n}<\/pre>\n<\/div>\n<p>\u7136\u540e\u5c31\u534e\u4e3d\u4e3d\u5730\u5bf9\u9f50\u4e86\uff0c\u5b8c\u5168\u6ca1\u6709<code>vertical-align<\/code>\u51fa\u573a\u7684\u673a\u4f1a\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201506\/ex-vertical-align.html\" class=\"a_link\" target=\"_blank\">ex\u9ad8\u5ea6\u56fe\u6807\u548c\u5b57\u7b26\u5929\u7136\u5bf9\u9f50Demo<\/a><\/p>\n<p>\u4f1a\u53d1\u73b0\uff0c\u5b57\u4f53\uff0c\u6587\u5b57\u5927\u5c0f\u5168\u53d8\u5316\uff0c\u5bf9\u9f50\u4f9d\u65e7\u826f\u597d\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201506\/2015-06-28_144726.png\" width=\"411\" height=\"273\" alt=\"\u6587\u5b57\u548c\u5c0f\u56fe\u6807\u5bf9\u9f50\u6548\u679c\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<p>\u867d\u7136\u4f7f\u7528<code>ex<\/code>\u505a\u9ad8\u5ea6\u5b9e\u73b0\u5929\u7136\u5782\u76f4\u5bf9\u9f50\u770b\u4e0a\u53bb\u5f88\u5de7\u5999\uff0c\u4f46\u662f\uff0c\u4e5f\u662f\u6709\u5c40\u9650\u7684\uff0c\u5c31\u662f\u5982\u679c\u56fe\u6807\u80cc\u666f\u7684\u9ad8\u5ea6\u8d85\u8fc7<code>1ex<\/code>\uff0c\u6211\u4eec\u5c31\u53ea\u80fd\u518d\u8bf7<code>vertical-align<\/code>\u51fa\u9a6c\u4e86\u2026\u2026<\/p>\n<p>\u5bf9\u4e86\uff0c\u8fd8\u6709\u4e00\u70b9\u3002\u7531\u4e8eIE6-IE7\u5bf9\u5185\u8054\u6a21\u578b\u7684\u89e3\u91ca\u6709\u95ee\u9898\uff0c\u56e0\u6b64\uff0c\u5404\u7c7b<code>vertical-align<\/code>\u5728\u8fd9\u4e9b\u6d4f\u89c8\u5668\u4e0b\u90fd\u662f\u6709\u95ee\u9898\uff0c\u5305\u62ec\u8fd9\u91cc\u7684<code>ex<\/code>\u5929\u7136\u57fa\u7ebf\u5bf9\u9f50\uff0c\u9700\u8981\u7279\u522b\u5904\u7406\u4e0b\u3002<\/p>\n<h3>\u516d\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u5916\u9762\u7684\u96e8\u54d7\u5566\u5566\u7684\u4e0b\u4e86\u4e00\u6574\u5929\uff0c\u6211\u7684\u9493\u9c7c\u5927\u8ba1\u554a\uff0c\u5c31\u6b64\u6ce1\u6c64\u3002<\/p>\n<p>\u8981\u662f\u73b0\u5728\u5728\u8001\u5bb6\u5c31\u597d\u4e86\uff0c\u6c9f\u6c9f\u6e20\u6e20\u91cc\u4e00\u5b9a\u90fd\u662f\u4ece\u9c7c\u5858\u8dd1\u51fa\u6765\u7684\u9c7c\uff0c\u4e0b\u6c34\u6478\u9c7c\u6355\u9c7c\u4e0d\u77e5\u6709\u591a\u5feb\u6d3b\u3002<\/p>\n<p>\u4e0d\u8fc7\u8bdd\u8bf4\uff0c\u8fd9\u9634\u96e8\u5929\u9002\u5408\u9493\u9cb6\u9c7c\uff0c\u8981\u4e0d\u5f85\u4f1a\u513f\u5192\u96e8\u51fa\u53bb\u78b0\u78b0\u8fd0\u6c14\uff1f<\/p>\n<p>\u8bdd\u8bf4\u672c\u6587\u7684<code>id<\/code>\u662f4848, \u6709\u4e9b\u4e0d\u5409\u5229\u554a\u3002\u4e0d\u8fc7\u53cd\u800c\u6765\u8bb2\uff0c\u53ef\u80fd\u662f\u5bf9\u9c7c\u513f\u8bf4\u7684\uff01<\/p>\n<p>\u6709\u9053\u7406\uff0c\u5199\u5b8c\u5c31\u53bb\u9493\u4f1a\u513f\u9c7c\uff0c\u6211\u6709\u5927\u5934\uff0c\u4e0b\u96e8\u4e0d\u6101\uff01<\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\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=4848\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=4848<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\uff0c\u6211\u4eec\u8fd9\u91cc\u7684\u5b57\u6bcd<code>'x'<\/code>\u5c31\u662f26\u4e2a\u82f1\u6587\u5b57\u6bcd<code>a<\/code>,<code>b<\/code>,<code>c<\/code>,<code>...<\/code>\u4e2d\u7684<code>x<\/code>.<\/p>\n<p>\u7531\u4e8e\u81ea\u8eab\u5f62\u6001\u7684\u4e00\u4e9b\u7279\u6b8a\u6027\uff0c\u56e0\u6b64\uff0c\u8fd9\u4e2a\u5c0f\u5c0f\u7684\u4e0d\u8d77\u773c\u7684\u5b57\u6bcd\u62c5\u5f53\u5927\u4efb\uff0c\u5728CSS\u4e16\u754c\u4e2d\u626e\u6f14\u4e86\u4e00\u4e2a\u91cd\u8981\u7684\u89d2\u8272\u3002<\/p>\n<p>\u6709\u4eba\u53ef\u80fd\u7684\u7b2c\u4e00\u53cd\u5e94\u662f\uff1a\u201c\u6211\u77e5\u9053\uff0c\u53ef\u4ee5\u6a21\u62df\u5173\u95ed\u6309\u94ae\u7684\u90a3\u4e2a\u53c9\u53c9\u6548\u679c\uff01\u201d<\/p>\n<p>\u8fd9\u4f4d\u540c\u5b66\u601d\u7ef4\u5f88\u6d3b\u8dc3\uff0c\u4f46\u662f\u5462\uff0c\u672c\u6587\u6240\u8981\u4ecb\u7ecd\u7684\u5b57\u6bcd<code>'x'<\/code>\u548cCSS\u7684\u5173\u7cfb\u4e0d\u662f\u5947\u5de7\u6deb\u6280\uff0c\u800c\u662f\u6b63\u7edf\u7684\u672f\u8bed\u4e0a\u7684\u7d27\u5bc6\u8054\u7cfb\u2026\u2026<\/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":[1002,1004,40,397,1003],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/4848"}],"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=4848"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/4848\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}