{"id":5352,"date":"2016-04-27T23:12:09","date_gmt":"2016-04-27T15:12:09","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5352"},"modified":"2018-01-10T00:28:55","modified_gmt":"2018-01-09T16:28:55","slug":"css-writing-mode","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2016\/04\/css-writing-mode\/","title":{"rendered":"\u6539\u53d8CSS\u4e16\u754c\u7eb5\u6a2a\u89c4\u5219\u7684writing-mode\u5c5e\u6027"},"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=5352\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=5352<\/a><\/p>\n<h3>\u4e00\u3001\u5189\u5189\u5347\u8d77\u7684writing-mode<\/h3>\n<p><code>writing-mode<\/code>\u8fd9\u4e2aCSS\u5c5e\u6027\uff0c\u6211\u4eec\u662f\u4e0d\u662f\u5f88\u5c11\u89c1\u5230\uff0c\u5f88\u5c11\u7528\u5230\uff01\u6211\u4eec\u5f80\u5f80\u79f0\u4e0d\u5e38\u89c1\u7684\u4e1c\u897f\u4e3a\u201c\u751f\u50fb\u201d\uff0c\u5c31\u50cf\u662f\u4e0d\u5e38\u89c1\u7684\u6587\u5b57\u6211\u4eec\u53eb\u201c\u751f\u50fb\u5b57\u201d\uff0c\u56e0\u6b64\u4e0d\u5e38\u89c1\u7684CSS\u5c5e\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u53eb\u505a\u201c\u751f\u50fb\u5c5e\u6027\u201d\uff0c<code>writing-mode<\/code>\u7ed9\u6211\u4eec\u7684\u611f\u89c9\u5c31\u662f\u4e00\u4e2a\u201c\u751f\u50fb\u5c5e\u6027\u201d\uff0c\u5f88\u5f31\uff0c\u53ef\u6709\u53ef\u65e0\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5b9e\u9645\u4e0a\uff0c\u6211\u4eec\u90fd\u9519\u4e86\uff0c\u5927\u9519\u7279\u9519\uff0c<code>writing-mode<\/code>\u5f88\u5f31\uff1f\u5367\u69fd\uff0c\u522b\u5f00\u73a9\u7b11\u4e86\uff0c<code>writing-mode<\/code>\u53ef\u4ee5\u8bf4\u662fCSS\u4e16\u754c\u91cc\u9762\u6700\u9006\u5929\u7684CSS\u5c5e\u6027\u4e86\uff0c\u76f4\u63a5\u98a0\u8986CSS\u4e16\u754c\u7684\u4f17\u591a\u89c4\u5219\u3002<\/p>\n<p>\u800c<code>writing-mode<\/code>\u4e4b\u6240\u4ee5\u7ed9\u4eba\u201c\u751f\u50fb\u201d\u7684\u611f\u89c9\uff0c\u662f\u6709\u539f\u56e0\u7684\u3002<\/p>\n<p>\u5b9e\u9645\u4e0a<code>writing-mode<\/code>\u8fd9\u4e2aCSS\u5c5e\u6027\u5728\u4e0a\u53e4\u65f6\u4ee3\u5c31\u8bde\u751f\u4e86\uff0cIE5.5\u6d4f\u89c8\u5668\u5c31\u5df2\u7ecf\u652f\u6301\u4e86\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/2016-04-19_224841.png\" width=\"433\" height=\"81\" alt=\"IE5.5\u8bde\u751f\u7684\u5e74\u4ee3\" class=\"alignnone\" \/><\/p>\n<p>\u90a3\u5c31\u5947\u602a\u4e86\uff01<code>writing-mode<\/code>\u65e2\u7136\u8fd9\u4e48\u9e1f\uff0c\u540c\u65f6\u65f6\u95f4\u65e9\uff0c\u8d44\u683c\u8001\uff0c\u4e3a\u5565\u4e00\u76f4\u6c89\u5bc2\u4e86\u5dee\u4e0d\u591a20\u5e74\u5462\uff1f<\/p>\n<p>\u90a3\u662f\u56e0\u4e3a\uff0c\u5728\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\u91cc\uff0cFireFox, Chrome\u8fd9\u4e9b\u73b0\u4ee3\u6d4f\u89c8\u5668\u90fd\u4e0d\u652f\u6301<code>writing-mode<\/code>\uff0c<code>writing-mode<\/code>\u57fa\u672c\u4e0a\u5c31\u662fIE\u6d4f\u89c8\u5668\u7684\u79c1\u6709\u4ea7\u7269\uff0c\u5927\u5bb6\u5bf9IE\u4e00\u76f4\u6ca1\u5565\u597d\u611f\uff0c\u5bf9\u5427\uff0c\u7231\u5c4b\u53ca\u4e4c\u7531\u6b64\u53ca\u5f7c\uff0c\u81ea\u7136\u5bf9<code>writing-mode<\/code>\u4e5f\u4e0d\u5f85\u89c1\u3002<\/p>\n<p>\u7136\u800c\uff0c\u5c31\u5728\u6211\u4eec\u88ab\u6d41\u884c\u524d\u7aef\u6280\u672f\u4e00\u53f6\u853d\u76ee\u7684\u65f6\u5019\uff0c\u5404\u5927\u73b0\u4ee3\u6d4f\u89c8\u5668\u7eb7\u7eb7\u5bf9<code>writing-mode<\/code>\u5b9e\u73b0\u4e86\u66f4\u52a0\u6807\u51c6\u7684\u652f\u6301\uff08\u4e3b\u8981\u5f97\u76ca\u4e8eFireFox\u6d4f\u89c8\u5668\u7684\u79ef\u6781\u8ddf\u8fdb\uff09\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e0d\u77e5\u4ec0\u4e48\u65f6\u5019\u8d77\uff0c<code>writing-mode<\/code>\u7684\u517c\u5bb9\u6027\u5df2\u7ecf\u4e0d\u6210\u95ee\u9898\u4e86\uff0c\u52a0\u4e0a\u8be5\u5c5e\u6027\u672c\u8eab\u7279\u6027\u9006\u5929\uff0c\u6211\u53bb\uff0c\u6211\u4eff\u4f5b\u770b\u5230\u4e86\u4e00\u4e2a\u5189\u5189\u5347\u8d77\u7684\u65b0\u661f\uff0c\u4e0d\u5bf9\uff0c\u662f\u65b0\u6708\uff0c\u800c\u4e14\u662f\u5706\u6708\u3002<\/p>\n<p><a href=\"http:\/\/caniuse.com\/css-writing-mode\/embed\" rel=\"nofollow\" target=\"_blank\">\u517c\u5bb9\u6027<\/a>\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-10_001808.png\" width=\"555\" height=\"256\" alt=\"CSS writing-mode\u5c5e\u6027\u517c\u5bb9\u6027\" class=\"alignnone\" \/><\/p>\n<h3>\u4e8c\u3001writing-mode\u7684\u539f\u672c\u4f5c\u7528<\/h3>\n<p>\u548c<code>float<\/code>\u5c5e\u6027\u6709\u4e9b\u7c7b\u4f3c\uff0c<code>writing-mode<\/code>\u539f\u672c\u8bbe\u8ba1\u7684\u662f\u63a7\u5236\u5185\u8054\u5143\u7d20\u7684\u663e\u793a\u7684\uff08\u5373\u6240\u8c13\u7684\u6587\u672c\u5e03\u5c40-Text Layout\uff09\u3002\u56e0\u4e3a\u5728\u4e9a\u6d32\uff0c\u5c24\u5176\u50cf\u4e2d\u56fd\u8fd9\u6837\u7684\u4e1c\u4e9a\u56fd\u5bb6\uff0c\u5b58\u5728\u6587\u5b57\u7684\u6392\u7248\u4e0d\u662f\u6c34\u5e73\u5f0f\u7684\uff0c\u800c\u662f\u5782\u76f4\u7684\uff0c\u4f8b\u5982\u4e2d\u56fd\u7684\u53e4\u8bd7\u53e4\u6587\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/yongliu-s.jpg\" width=\"250\" height=\"192\" alt=\"\u5782\u76f4\u53e4\u8bd7\" class=\"alignnone\" \/><\/p>\n<p>\u56e0\u6b64\uff0c<code>writing-mode<\/code>\u5c31\u662f\u7528\u6765\u5b9e\u73b0\u6587\u5b57\u53ef\u4ee5\u7ad6\u7740\u5448\u73b0\u7684\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201604\/writing-mode-text-vertical-layout.html\" target=\"_blank\">CSS writing-mode\u4e0e\u6587\u5b57\u5782\u76f4\u6392\u7248demo<\/a><\/p>\n<p>\u622a\u81eaIE11\u6d4f\u89c8\u5668IE8\u6a21\u5f0f\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/2016-04-22_193230.png\" width=\"372\" height=\"302\" alt=\"IE8\u4e0bwrting-mode\u7684\u6587\u672c\u5782\u76f4\u663e\u793a\" class=\"alignnone\" \/><\/p>\n<p><strong>writing-mode\u8bed\u6cd5<\/strong><br \/>\n<code>writing-mode<\/code>\u7684\u8bed\u6cd5\u5b66\u4e60\u76f8\u6bd4\u5176\u4ed6CSS\u5c5e\u6027\u8981\u9ad8\u4e00\u4e9b\uff0c\u56e0\u4e3a\u6211\u4eec\u9700\u8981\u8bb0\u4f4f\u4e24\u5957\u4e0d\u540c\u7684\u8bed\u6cd5\u3002\u4e00\u4e2a\u662fIE\u79c1\u6709\u5c5e\u6027\uff0c\u7b2c\u4e8c\u4e2a\u662fCSS3\u89c4\u8303\u5c5e\u6027\u3002<\/p>\n<p>\u5148\u770b\u4e0b\u672a\u6765\u6240\u9700\u7684CSS3\u8bed\u6cd5\uff1a<\/p>\n<pre class=\"brush:css line-numbers  language-css\"><span style=\"color:green;\">\/* \u5173\u952e\u5b57\u503c *\/<\/span>\nwriting-mode: horizontal-tb;    <span style=\"color:green;\">\/* \u9ed8\u8ba4\u503c *\/<\/span>\nwriting-mode: vertical-rl;\nwriting-mode: vertical-lr;\n\n<span style=\"color:green;\">\/* \u5168\u5c40\u503c-\u5173\u952e\u5b57inherit IE8+\uff0cinitial\u548cunset IE13\u624d\u652f\u6301 *\/<\/span>\n<span class=\"token property\">writing-mode<\/span><span class=\"token punctuation\">:<\/span> inherit<span class=\"token punctuation\">;<\/span>\n<span class=\"token property\">writing-mode<\/span><span class=\"token punctuation\">:<\/span> initial<span class=\"token punctuation\">;<\/span>\n<span class=\"token property\">writing-mode<\/span><span class=\"token punctuation\">:<\/span> unset<span class=\"token punctuation\">;<\/span><span class=\"line-numbers-rows\"><span><\/span><span><\/span><span><\/span><span><\/span><span><\/span><span><\/span><span><\/span><span><\/span><span><\/span><\/span><\/pre>\n<p>\u5404\u4e2a\u5173\u952e\u5b57\u5c5e\u6027\u503c\u7684\u542b\u4e49\uff0c\u6211\u4eec\u900f\u660e\u540d\u79f0\u5c31\u80fd\u77e5\u9053\u5176\u5927\u6982\u7684\u610f\u601d\uff0c\u4f8b\u5982\uff0c\u9ed8\u8ba4\u503c<code>horizontal-tb<\/code>\u8868\u793a\uff0c\u6587\u672c\u6d41\u662f\u6c34\u5e73\u65b9\u5411(horizontal)\u7684\uff0c\u5143\u7d20\u662f\u4ece\u4e0a\u5f80\u4e0b(tb:<strong>t<\/strong>op-<strong>b<\/strong>ottom)\u5806\u53e0\u7684\u3002<\/p>\n<p><code>vertical-rl<\/code>\u8868\u793a\u6587\u672c\u662f\u5782\u76f4\u65b9\u5411(vertical)\u5c55\u793a\uff0c\u7136\u540e\u9605\u8bfb\u7684\u987a\u5e8f\u662f\u4ece\u53f3\u5f80\u5de6(rl:<strong>r<\/strong>ight-<strong>l<\/strong>eft)\uff0c\u8ddf\u6211\u4eec\u53e4\u8bd7\u7684\u9605\u8bfb\u987a\u5e8f\u4e00\u81f4\u3002<br \/>\n<code>vertical-lr<\/code>\u8868\u793a\u6587\u672c\u662f\u5782\u76f4\u65b9\u5411(vertical)\u5c55\u793a\uff0c\u7136\u540e\u9605\u8bfb\u7684\u987a\u5e8f\u8fd8\u662f\u9ed8\u8ba4\u7684\u4ece\u5de6\u5f80\u53f3(lr:<strong>l<\/strong>eft-<strong>r<\/strong>ight)\uff0c\u4e5f\u5c31\u662f\u4ec5\u4ec5\u662f\u6c34\u5e73\u53d8\u5782\u76f4\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u5404\u4e2a\u503c\u4e0b\u7684\u4e2d\u82f1\u6587\u8868\u73b0\u5bf9\u7167\uff08\u53c2\u8003\u81ea<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/writing-mode\" target=\"_blank\">MDN<\/a>\uff09\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/writing-mode-actual-result-s.png\" width=\"351\" height=\"260\" alt=\"writing-mode\u548c\u6587\u672c\u5c55\u793a\" class=\"alignnone\" \/><\/p>\n<p><span class=\"s\">\/\/zxx: \u5927\u5bb6\u4f1a\u53d1\u73b0\u82f1\u6587\u5b57\u7b26\u6a2a\u8fc7\u6765\u4e86\uff0c\u53ef\u4ee5\u8bd5\u8bd5\u4f7f\u7528<code>text-orientation:upright<\/code>\u8ba9\u5176\u76f4\u7acb\uff0cIE\u4e0d\u652f\u6301\uff0cFireFox, Chrome\u652f\u6301\u3002<\/span><\/p>\n<p>\u4e0b\u9762\u6765\u770b\u4e0b\u8001IE\u6d4f\u89c8\u5668\u7684\u8bed\u6cd5\uff0c\u7531\u4e8e\u5386\u53f2\u539f\u56e0\uff0c\u663e\u5f97\u76f8\u5f53\u7684\u590d\u6742\uff0c<a href=\"https:\/\/msdn.microsoft.com\/zh-cn\/library\/ms531187(v=vs.85).aspx\" target=\"_blank\">IE\u5b98\u65b9\u6587\u6863<\/a>\u663e\u793a\u5982\u4e0b\uff1a<\/p>\n<pre>-ms-writing-mode: lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb<\/pre>\n<p>\u6839\u636e\u81ea\u5df1\u7684\u6d4b\u8bd5\uff08\u975e\u539f\u751fIE8,IE9\uff09\uff0c<code>-ms-<\/code>\u79c1\u6709\u524d\u7f00\u662f\u53ef\u7f3a\u7701\u7684\uff0c\u76f4\u63a5<code>writing-mode<\/code>\u6240\u4ee5IE\u6d4f\u89c8\u5668\u90fd\u662f\u652f\u6301\u7684\u3002<code>-ms-writing-mode<\/code>\u8fd9\u79cd\u5199\u6cd5IE7\u6d4f\u89c8\u5668\u662f\u4e0d\u652f\u6301\u7684\uff0c\u4f46\u662f\u5b98\u65b9\u6709\u5982\u4e0b\u8bf4\u660e\uff1a<\/p>\n<blockquote><p>Windows Internet Explorer 7. The rl-tb, and bt-rl values are available to the -ms-writing-mode<\/p><\/blockquote>\n<p>\u5c31\u662f\u8bf4IE7\u7684<code>-ms-writing-mode<\/code>\u53ef\u4ee5\u4f7f\u7528<code>rl-tb<\/code>\u548c<code>bt-rl<\/code>\u8fd9\u4e24\u4e2a\u503c\uff0c\u4f46\u8fd9\u548c\u81ea\u5df1\u7684\u6d4b\u8bd5\u4e0d\u7b26\uff0c\u6211\u89c9\u5f97\u53ef\u80fd\u662f\u539f\u751fIE7\u6d4f\u89c8\u5668\uff0c\u4f46\u6211\u6ca1\u6709\u539f\u751fIE7\uff0c\u6ca1\u6709\u8fdb\u884c\u8fc7\u6d4b\u8bd5\uff0c\u56e0\u6b64\uff0c\u6b64\u8bf4\u6cd5\uff08\u539f\u751fIE7\u652f\u6301\uff09\u53ea\u662f\u81ea\u5df1\u7684\u63a8\u6d4b\u3002<\/p>\n<p>\u6211\u6273\u6307\u5934\u6570\u4e86\u6570\uff0cIE\u6d4f\u89c8\u5668\u4e0b\u7684\u5173\u952e\u5b57\u503c\u591a\u8fbe11\u4e2a\uff0c\u6b63\u597d\u53ef\u4ee5\u7ec4\u4e2a\u8db3\u7403\u961f\uff0c<img decoding=\"async\" src=\"http:\/\/mat1.gtimg.com\/www\/mb\/images\/face\/34.gif\" align=\"absmiddle\"><\/p>\n<dl>\n<dt><strong>lr-tb<\/strong> <\/dt>\n<dd>IE7+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u521d\u59cb\u503c\u3002\u5185\u5bb9\u4ece\u5de6\u5f80\u53f3(<strong>l<\/strong>eft-<strong>r<\/strong>ight)\uff0c\u4ece\u4e0a\u5f80\u4e0b(<strong>t<\/strong>op-<strong>b<\/strong>ottom)\u6c34\u5e73\u6d41\u52a8\uff0c\u4ee5\u53ca\u4e0b\u4e00\u884c\u6c34\u5e73\u5143\u7d20\u5728\u4e0a\u4e00\u884c\u5143\u7d20\u7684\u4e0b\u9762\uff0c\u6240\u6709\u7b26\u53f7\u90fd\u662f\u76f4\u7acb\u5b9a\u4f4d\u3002\u5927\u90e8\u5206\u7684\u4e66\u5199\u7cfb\u7edf\u90fd\u662f\u4f7f\u7528\u8fd9\u79cd\u5e03\u5c40\u3002\n<\/dd>\n<dt><strong>rl-tb<\/strong> <\/dt>\n<dd>IE7+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u5185\u5bb9\u4ece\u53f3\u5f80\u5de6(<strong>r<\/strong>ight-<strong>l<\/strong>eft\uff0c\u4ece\u4e0a\u5f80\u4e0b(<strong>t<\/strong>op-<strong>b<\/strong>ottom)\u6c34\u5e73\u6d41\u52a8\uff0c\u4ee5\u53ca\u4e0b\u4e00\u884c\u6c34\u5e73\u5143\u7d20\u5728\u4e0a\u4e00\u884c\u5143\u7d20\u7684\u4e0b\u9762\uff0c\u6240\u6709\u7b26\u53f7\u90fd\u662f\u76f4\u7acb\u5b9a\u4f4d\u3002\u8fd9\u79cd\u5e03\u5c40\u9002\u5408\u4ece\u53f3\u5f80\u5de6\u4e66\u5199\u7684\u8bed\u8a00\uff0c\u4f8b\u5982\u963f\u62c9\u4f2f\u8bed\uff0c\u5e0c\u4f2f\u6765\u8bed\uff0c\u5854\u5b89\u90a3\u6587\uff0c\u548c\u53d9\u5229\u4e9a\u8bed\u3002\n<\/dd>\n<dt><strong>tb-rl<\/strong> <\/dt>\n<dd>IE7+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u5185\u5bb9\u4ece\u4e0a\u5f80\u4e0b(<strong>t<\/strong>op-<strong>b<\/strong>ottom)\uff0c\u4ece\u53f3\u5f80\u5de6(<strong>r<\/strong>ight-<strong>l<\/strong>eft)\u5782\u76f4\u6d41\u52a8\uff0c \u4e0b\u4e00\u4e2a\u5782\u76f4\u884c\u5b9a\u4f4d\u4e8e\u524d\u4e00\u4e2a\u5782\u76f4\u884c\u7684\u5de6\u8fb9\uff0c\u5168\u89d2\u7b26\u53f7\u76f4\u7acb\u5b9a\u4f4d\uff0c\u975e\u5168\u89d2\u7b26\u53f7(\u4e5f\u53ef\u4ee5\u88ab\u79f0\u4f5c\u7a84\u62c9\u4e01\u6587\u6216\u8005\u7a84\u5047\u540d\u7b26\u53f7)\u987a\u65f6\u9488\u65b9\u5411\u65cb\u8f6c90\u00b0\u3002\u8fd9\u79cd\u5e03\u5c40\u591a\u89c1\u4e8e\u4e1c\u4e9a\u6392\u7248\u3002\n<\/dd>\n<dt><strong>bt-rl<\/strong> <\/dt>\n<dd>IE7+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u5185\u5bb9\u4ece\u4e0b\u5f80\u4e0a(<strong>b<\/strong>ottom-<strong>t<\/strong>op)\uff0c\u4ece\u53f3\u5f80\u5de6(<strong>r<\/strong>ight-<strong>l<\/strong>eft)\u5782\u76f4\u6d41\u52a8\uff0c \u4e0b\u4e00\u4e2a\u5782\u76f4\u884c\u5b9a\u4f4d\u4e8e\u524d\u4e00\u4e2a\u5782\u76f4\u884c\u7684\u5de6\u8fb9\uff0c\u5168\u89d2\u7b26\u53f7\u76f4\u7acb\u5b9a\u4f4d\uff0c\u975e\u5168\u89d2\u7b26\u53f7(\u4e5f\u53ef\u4ee5\u88ab\u79f0\u4f5c\u7a84\u62c9\u4e01\u6587\u6216\u8005\u7a84\u5047\u540d\u7b26\u53f7)\u987a\u65f6\u9488\u65b9\u5411\u65cb\u8f6c90\u00b0\u3002\u6b64\u5e03\u5c40\u591a\u89c1\u4e8e\u5728\u4e1c\u4e9a\u5782\u76f4\u6392\u7248\u4ece\u53f3\u5f80\u5de6\u7684\u6587\u672c\u5757\u4e0a\u3002<\/dd>\n<dt><strong>tb-lr<\/strong> <\/dt>\n<dd>IE8+\u6d4f\u89c8\u5668\u652f\u6301\u3002 \u5185\u5bb9\u4ece\u4e0a\u5f80\u4e0b(<strong>t<\/strong>op-<strong>b<\/strong>ottom)\uff0c\u4ece\u5de6\u5f80\u53f3(<strong>l<\/strong>eft-<strong>r<\/strong>ight)\u5782\u76f4\u6d41\u52a8\u3002\u4e0b\u4e00\u4e2a\u5782\u76f4\u884c\u5728\u524d\u4e00\u4e2a\u7684\u53f3\u8fb9\u3002\n<\/dd>\n<dt><strong>bt-lr<\/strong> <\/dt>\n<dd>IE8+\u6d4f\u89c8\u5668\u652f\u6301\u3002 \u5185\u5bb9\u4ece\u4e0b\u5f80\u4e0a(<strong>b<\/strong>ottom-<strong>t<\/strong>op)\uff0c\u4ece\u5de6\u5f80\u53f3(<strong>l<\/strong>eft-<strong>r<\/strong>ight)\u5782\u76f4\u6d41\u52a8\u3002\n<\/dd>\n<dt><strong>lr-bt<\/strong> <\/dt>\n<dd>IE8+\u6d4f\u89c8\u5668\u652f\u6301\u3002 \u5185\u5bb9\u4ece\u4e0b\u5f80\u4e0a(<strong>b<\/strong>ottom-<strong>t<\/strong>op)\uff0c\u4ece\u5de6\u5f80\u53f3(<strong>l<\/strong>eft-<strong>r<\/strong>ight)\u6c34\u5e73\u6d41\u52a8\u3002\u4e0b\u4e00\u4e2a\u6c34\u5e73\u884c\u5728\u524d\u4e00\u884c\u7684\u4e0a\u9762\u3002\n<\/dd>\n<dt><strong>rl-bt<\/strong> <\/dt>\n<dd>IE8+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u5185\u5bb9\u4ece\u4e0b\u5f80\u4e0a(<strong>b<\/strong>ottom-<strong>t<\/strong>op)\uff0c \u4ece\u53f3\u5f80\u5de6(<strong>r<\/strong>ight-<strong>l<\/strong>eft)\u6c34\u5e73\u6d41\u52a8\u3002\n<\/dd>\n<dt><strong>lr<\/strong> <\/dt>\n<dd>IE9+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u5728SVG\u548cHTML\u5143\u7d20\u4e0a\u4f7f\u7528\u3002\u7b49\u540c\u4e8e<code>lr-tb<\/code>.\n<\/dd>\n<dt><strong>rl<\/strong> <\/dt>\n<dd>IE9+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u5728SVG\u548cHTML\u5143\u7d20\u4e0a\u4f7f\u7528\u3002\u7b49\u540c\u4e8e<code>rl-tb<\/code>.\n<\/dd>\n<dt><strong>tb<\/strong> <\/dt>\n<dd>IE9+\u6d4f\u89c8\u5668\u652f\u6301\u3002\u5728SVG\u548cHTML\u5143\u7d20\u4e0a\u4f7f\u7528\u3002\u7b49\u540c\u4e8e<code>tb-rl<\/code>.\n<\/dd>\n<\/dl>\n<p>\u5404\u4e2a\u5c5e\u6027\u503c\u7684\u8868\u73b0\u5982\u4e0b\uff08form\u5fae\u8f6f\u5b98\u7f51\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/IC536360-s.png\" width=\"616\" height=\"259\" alt=\"IE\u6d4f\u89c8\u5668\u4e0b\u5404\u4e2a\u5c5e\u6027\u503c\u8868\u73b0\" class=\"alignnone\" \/><\/p>\n<p><strong>\u4e00\u4e9b\u8bf4\u660e\uff1a<\/strong><\/p>\n<ul>\n<li>\u76f8\u540c\u7684<code>writing-mode<\/code>\u5c5e\u6027\u503c\u5e76\u4e0d\u4f1a\u7d2f\u52a0\uff0c\u4f8b\u5982\u7236\u5b50\u5747\u8bbe\u7f6e\u4e86<code>writing-mode:tb-rl<\/code>\uff0c\u53ea\u4f1a\u6e32\u67d3\u4e00\u6b21\uff0c\u5b50\u5143\u7d20\u5e76\u4e0d\u4f1a2\u6b21\u201c\u65cb\u8f6c\u201d\u3002<\/li>\n<li>IE\u6d4f\u89c8\u5668\u4e0b\uff0c\u4e00\u4e2a\u81ea\u8eab\u5177\u6709\u5e03\u5c40\u7684\u5143\u7d20\uff08\u4e0d\u662f\u7eaf\u6587\u672c\u4e4b\u7c7b\u5143\u7d20\uff09\u5982\u679c<code>writing-mode<\/code>\u5c5e\u6027\u503c\u548c\u7236\u5143\u7d20\u4e0d\u540c\uff0c\u5f53\u5b50\u5143\u7d20\u7684\u5e03\u5c40\u6d41\u53d8\u5316\u7684\u65f6\u5019\uff0c\u5176\u7236\u5143\u7d20\u5750\u6807\u7cfb\u7edf\u7684\u53ef\u7528\u7a7a\u95f4\u4f1a\u88ab\u5145\u5206\u5229\u7528\u3002\u5de6\u8fb9\u6587\u5b57\u592a\u8fc7\u672f\u8bed\uff0c\u5927\u5bb6\u53ef\u80fd\u4e0d\u61c2\uff0c\u6211\u89e3\u91ca\u4e0b\u5c31\u662f\uff0cIE\u6d4f\u89c8\u5668\u4e0b\uff0c\u5f53\u5e03\u5c40\u5143\u7d20\u4ece\u6c34\u5e73\u53d8\u6210\u5782\u76f4\u7684\u65f6\u5019\uff08\u4e3e\u4e2a\u4f8b\u5b50\uff09\uff0c\u4f60\u5c31\u60f3\u8c61\u4e3a\u5143\u7d20\u5728\u5782\u76f4\u65b9\u5411\u662f100%\u81ea\u9002\u5e94\u7236\u5143\u7d20\u9ad8\u5ea6\u7684\u3002\u6240\u4ee5\uff0cIE\u6d4f\u89c8\u5668\u4e0b(\u4e0d\u5305\u62ecIE13+)\uff0c\u5143\u7d20vertical\u6d41\u7684\u65f6\u5019\u4f1a\u53d1\u73b0\u9ad8\u5ea6\u9ad8\u7684\u5413\u4eba\uff0c\u5e03\u5c40\u548c\u5176\u4ed6\u73b0\u4ee3\u6d4f\u89c8\u5668\u4e0d\u4e00\u6837\uff0c\u5c31\u662f\u8fd9\u4e2a\u539f\u56e0\u3002<\/li>\n<li><del datetime=\"2017-05-07T17:13:51+00:00\">Chrome\u6d4f\u89c8\u5668\u4e0b\u76ee\u524d\u8fd8\u9700\u8981<code>-webkit-<\/code>\u79c1\u6709\u524d\u7f00<\/del>\uff0cChrome\u6d4f\u89c8\u5668\u4ece48\u5f00\u59cb\u65e0\u9700\u79c1\u6709\u524d\u7f00\uff0c\u867d\u7136Chrome\u548cOpera\u8ba4\u8bc6<code>tb-rl<\/code>\u7b49\u8001\u7684IE\u5c5e\u6027\u503c\uff0c\u4f46\u662f\uff0c\u4ec5\u4ec5\u662f\u8ba4\u8bc6\u800c\u5df2\uff0c\u6839\u672c\u4e0d\u9e1f\uff0c\u6ca1\u6709\u4efb\u4f55\u6548\u679c\uff0c\u804b\u5b50\u7684\u8033\u6735\u2014\u2014\u6446\u8bbe\uff01<\/li>\n<\/ul>\n<p><strong>\u9700\u8981\u5173\u6ce8\u7684writing-mode\u5c5e\u6027\u503c<\/strong><br \/>\n\u4ece\u7740\u773c\u4e8e\u76f4\u63a5\u5f00\u53d1\u7684\u89d2\u5ea6\u800c\u8a00\uff0c\u867d\u7136IE\u652f\u6301\u591a\u8fbe11\u4e2a\u79c1\u6709\u7684\u5c5e\u6027\u503c\uff0c\u4f46\u662f\uff0c\u6211\u4eec\u9700\u8981\u5173\u6ce8\u7684\uff0c\u4e5f\u5c31\u90a3\u4e48\u51e0\u4e2a\uff0c\u90a3\u7a76\u7adf\u662f\u54ea\u51e0\u4e2a\u5462\uff1f<\/p>\n<p>\u5982\u679c\u4f60\u7684\u9879\u76ee\u9700\u8981\u517c\u5bb9IE7\uff0c\u5219\u53ea\u6709\u5173\u6ce8\u8fd9\u4e24\u4e2a\u503c\u5c31\u53ef\u4ee5\u4e86\uff1a\u521d\u59cb\u503c<code>lr-tb<\/code>\u548c<code>tb-rl<\/code>\uff0c\u5bf9\u5e94\u4e8eCSS3\u89c4\u8303\u4e2d\u7684<code>horizontal-tb<\/code>\u548c<code>vertical-rl<\/code>\uff01\u5176\u4ed69\u4e2a\u5c5e\u6027\u503c\u5c31\u8ba9\u5b83\u4eec\u53bb\u8fc7\u5bb6\u5bb6\u597d\u4e86\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684\u9879\u76ee\u53ea\u9700\u8981\u517c\u5bb9IE8+\uff0c\u606d\u559c\u4f60\uff0c\u4f60\u53ef\u4ee5\u548cCSS3\u89c4\u8303\u5c5e\u6027\u5b8c\u5168\u5bf9\u5e94\u4e0a\u4e86\uff0c\u800c\u4e14IE8\u4e0b\u7684<code>writing-mode<\/code>\u8981\u6bd4IE7\u5f3a\u5927\u7684\u591a\u3002\u6211\u4eec\u9700\u8981\u5173\u6ce8\uff1a\u521d\u59cb\u503c<code>lr-tb<\/code>, <code>tb-rl<\/code>\u4ee5\u53ca<code>tb-lr<\/code>\uff0c\u5206\u522b\u5bf9\u5e94\u4e8eCSS3\u4e2d\u7684<code>horizontal-tb<\/code>, <code>vertical-rl<\/code>\u4ee5\u53ca<code>vertical-lr<\/code>\u3002<\/p>\n<p>\u770b\u4e0a\u53bb\u590d\u6742\u7684\u5c5e\u6027\u662f\u4e0d\u662f\u53d8\u5f97\u5f88\u7b80\u5355\u4e86\uff0c\u91cd\u65b0\u6574\u4e00\u4e2a\u5b9e\u6218\u7248\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>writing-mode: lr-tb | tb-rl | tb-lr (IE8+);\nwriting-mode: horizontal-tb | vertical-rl | vertical-lr;<\/pre>\n<\/div>\n<p>\u5bf9\uff0c\u5927\u5bb6\u53ea\u8981\u8bb0\u4f4f\u4e0a\u9762\u51e0\u4e2a\u5c31\u53ef\u4ee5\u4e86\uff0cenough! \u56e0\u4e3a\u6240\u8c13\u7684\u5782\u76f4\u6392\u7248\uff0c\u5b9e\u9645web\u5f00\u53d1\u662f\u5f88\u5c11\u5f88\u5c11\u9047\u5230\u7684\u3002<\/p>\n<p>\u6709\u540c\u5b66\u53ef\u80fd\u8981\u7591\u95ee\u4e86\uff0c\u65e2\u7136<code>writing-mode<\/code>\u5b9e\u73b0\u6587\u672c\u5782\u76f4\u6392\u7248\u573a\u666f\u6709\u9650\uff0c\u90a3\u8fd8\u6709\u4ec0\u4e48\u5b66\u4e60\u7684\u610f\u4e49\u5462\uff1f<\/p>\n<p>\u524d\u9762\u4e5f\u63d0\u5230\u4e86\uff0c\u867d\u7136<code>writing-mode<\/code>\u521b\u9020\u7684\u672c\u610f\u662f\u6587\u672c\u5e03\u5c40\uff0c\u4f46\u662f\uff0c\u5176\u5e26\u6765\u7684\u6587\u6863\u6d41\u5411\u7684\u6539\u53d8\uff0c\u4e0d\u4ec5\u6539\u53d8\u4e86\u6211\u4eec\u591a\u5e74\u6765\u6b63\u5e38\u7684CSS\u8ba4\u77e5\uff0c\u540c\u65f6\u53ef\u4ee5\u5de7\u5999\u5b9e\u73b0\u5f88\u591a\u610f\u60f3\u4e0d\u5230\u7684\u9700\u6c42\u548c\u6548\u679c\u3002<\/p>\n<h3>\u4e09\u3001writing-mode\u4e0d\u7ecf\u610f\u6539\u53d8\u4e86\u54ea\u4e9b\u89c4\u5219\uff1f<\/h3>\n<p><code>writing-mode<\/code>\u5c06\u9875\u9762\u9ed8\u8ba4\u7684\u6c34\u5e73\u6d41\u6539\u6210\u4e86\u5782\u76f4\u6d41\uff0c\u98a0\u8986\u4e86\u5f88\u591a\u6211\u4eec\u4ee5\u5f80\u7684\u8ba4\u77e5\uff0c\u57fa\u4e8e\u539f\u672c\u6c34\u5e73\u65b9\u5411\u624d\u9002\u7528\u7684\u89c4\u5219\u5168\u90e8\u90fd\u53ef\u4ee5\u5728\u5782\u76f4\u65b9\u5411\u9002\u7528\uff01<\/p>\n<p><strong>1. \u6c34\u5e73\u65b9\u5411\u4e5f\u80fdmargin\u91cd\u53e0<\/strong><br \/>\n<a href=\"https:\/\/www.w3.org\/TR\/CSS2\/box.html\" target=\"_blank\">W3C\u6587\u6863<\/a>margin\u91cd\u53e0\u4e4b\u4e00\uff1a<\/p>\n<blockquote><p>The bottom margin of an in-flow block-level element always collapses with the top margin of its next in-flow block-level sibling, unless that sibling has clearance.<\/p><\/blockquote>\n<p>\u6e05\u6e05\u695a\u695a\u5199\u7684bottom margin\u548ctop margin\u4f1a\u91cd\u53e0\uff1b\u7136\u800c\uff0c\u8fd9\u662fCSS2\u6587\u6863\u4e2d\u7684\u63cf\u8ff0\uff0c\u5728CSS3\u7684\u4e16\u754c\u4e2d\uff0c\u7531\u4e8e<code>writing-mode<\/code>\u7684\u5b58\u5728\uff0c\u8fd9\u79cd\u8bf4\u6cd5\u5c31\u4e0d\u4e25\u8c28\u4e86\uff0c\u5e94\u8be5\u662f\u5bf9\u7acb\u6d41\u65b9\u5411\u7684margin\u503c\u4f1a\u53d1\u751f\u91cd\u53e0\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u5143\u7d20\u662f\u9ed8\u8ba4\u7684\u6c34\u5e73\u6d41\uff0c\u5219\u5782\u76f4margin\u4f1a\u91cd\u53e0\uff1b\u5982\u679c\u5143\u7d20\u662f\u5782\u76f4\u6d41\uff0c\u5219\u6c34\u5e73margin\u4f1a\u91cd\u53e0\u3002<\/p>\n<p>\u60a8\u773c\u89c1\u4e3a\u5b9e\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201604\/writing-mode-horizontal-margin-collapse.html\" target=\"_blank\">CSS writing-mode\u4e0emargin\u6c34\u5e73\u91cd\u53e0demo<\/a><\/p>\n<p>\u7ed3\u679c\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/2016-04-26_155913.png\" width=\"486\" height=\"385\" alt=\"\u6c34\u5e73\u65b9\u5411margin\u91cd\u53e0\" class=\"alignnone\" \/><\/p>\n<p><strong>2. \u53ef\u4ee5\u4f7f\u7528margin:auto\u5b9e\u73b0\u5782\u76f4\u5c45\u4e2d<\/strong><br \/>\n\u6211\u4eec\u5e94\u8be5\u90fd\u662f\u7684\uff0c\u4f20\u7edf\u7684web\u6d41\u4e2d\uff0c<code>margin<\/code>\u8bbe\u7f6e<code>auto<\/code>\u503c\u7684\u65f6\u5019\uff0c\u53ea\u6709\u6c34\u5e73\u65b9\u5411\u624d\u4f1a\u5c45\u4e2d\uff0c\u56e0\u4e3a\u9ed8\u8ba4<code>width<\/code>\u662f<code>100%<\/code>\u81ea\u9002\u5e94\u7684\uff0c<code>auto<\/code>\u624d\u6709\u8ba1\u7b97\u503c\u53ef\u4f9d\uff0c\u800c\u5782\u76f4\u65b9\u5411\uff0cheight\u6ca1\u6709\u4efb\u4f55\u8bbe\u7f6e\u7684\u65f6\u5019\u9ad8\u5ea6\u7edd\u4e0d\u4f1a\u81ea\u52a8\u548c\u7236\u7ea7\u9ad8\u5ea6\u4e00\u81f4\uff0c\u56e0\u6b64\uff0c<code>auto<\/code>\u6ca1\u6709\u8ba1\u7b97\u7a7a\u95f4\uff0c\u4e8e\u662f\u65e0\u6cd5\u5b9e\u73b0\u5782\u76f4\u5c45\u4e2d\u3002\u4f46\u662f\uff0c\u5728<code>writing-mode<\/code>\u7684\u4e16\u754c\u91cc\uff0c\u7eb5\u6a2a\u89c4\u5219\u5df2\u7ecf\u6539\u53d8\uff0c\u5143\u7d20\u7684\u884c\u4e3a\u8868\u73b0\u53d1\u751f\u4e86\u7ffb\u5929\u8986\u5730\u7684\u53d8\u5316\u3002<\/p>\n<ul>\n<li><strong>\u56fe\u7247\u5143\u7d20<\/strong><br \/>\n\u6211\u4eec\u5148\u6765\u770b\u4e0b\uff0c\u56fe\u7247\u5143\u7d20<code>margin:auto<\/code>\u5b9e\u73b0\u5782\u76f4\u5c45\u4e2d\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201604\/writing-mode-vertical-image-margin-auto.html\" target=\"_blank\">CSS writing-mode\u4e0e\u56fe\u7247margin:auto\u5782\u76f4\u5c45\u4e2ddemo<\/a><\/p>\n<p>\u5176\u4e2d\u56fe\u7247\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>img { display: block; margin-top: auto; margin-bottom: auto; }<\/pre>\n<\/div>\n<p>FireFox\u6d4f\u89c8\u5668\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-10_002129.png\" width=\"448\" height=\"370\" alt=\"FireFox\u6d4f\u89c8\u5668\u4e0b\u622a\u56fe\" class=\"alignnone\" \/><\/p>\n<p>\u4f46\u662f\uff0c\u5728IE\u6d4f\u89c8\u5668\u4e0b\uff0c\u5374\u6ca1\u6709\u5782\u76f4\u5c45\u4e2d~~<img decoding=\"async\" src=\"http:\/\/mat1.gtimg.com\/www\/mb\/images\/face\/36.gif\" align=\"absmiddle\"><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-10_002253.png\" width=\"440\" height=\"393\" alt=\"IE11\u56fe\u7247\u6ca1\u6709\u5782\u76f4\u5c45\u4e2d\" class=\"alignnone\" \/><\/p>\n<p>\u7eb3\u5c3c\uff1f\uff01\u96be\u9053IE\u4e0d\u652f\u6301\u5782\u76f4\u6d41\u4e0b\u7684\u5782\u76f4\u5c45\u4e2d\uff1f\u975e\u4e5f\uff0c\u6839\u636e\u9119\u4eba\u7684\u6d4b\u8bd5\uff0c\u4e5f\u5c31\u662f\u56fe\u7247\u8fd9\u7c7b\u66ff\u6362\u5143\u7d20\u8c8c\u4f3c\u4e0d\u884c\uff0c\u666e\u901a\u7684block\u5143\u7d20\u90fd\u662f\u53ef\u4ee5\u7684\u3002<\/p>\n<\/li>\n<li><strong>\u666e\u901a\u5757\u72b6\u5143\u7d20<\/strong><br \/>\n\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201604\/writing-mode-vertical-margin-auto.html\" target=\"_blank\">CSS writing-mode\u4e0e\u666e\u901ablock\u5143\u7d20margin:auto\u5782\u76f4\u5c45\u4e2ddemo<\/a><\/p>\n<p>\u6b64\u65f6\uff0c\u4e0d\u4ec5IE11 edge\uff0c\u751a\u81f3IE8\u6d4f\u89c8\u5668\u4e5f\u90fd\u5782\u76f4\u5c45\u4e2d\u4e86\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/2016-04-26_192106.png\" width=\"477\" height=\"438\" alt=\"IE8\u6d4f\u89c8\u5668\u4e0bblock\u5143\u7d20\u7684margin:auto\u5c45\u4e2d\" class=\"alignnone\" \/><\/li>\n<\/ul>\n<p><strong>3. \u53ef\u4ee5\u4f7f\u7528text-align:center\u5b9e\u73b0\u56fe\u7247\u5782\u76f4\u5c45\u4e2d<\/strong><br \/>\n\u524d\u9762\u63d0\u8fc7\uff0c<code>auto<\/code>\u65e0\u6cd5\u5b9e\u73b0IE\u6d4f\u89c8\u5668\u4e0b\u7684\u56fe\u7247\u5782\u76f4\u5c45\u4e2d\uff0c\u5982\u679c\u6211\u4eec\u975e\u8981\u8ba9\u56fe\u7247\u5782\u76f4\u5c45\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>text-align:center<\/code>\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201604\/writing-mode-vertical-image-text-align-center.html\" target=\"_blank\">CSS writing-mode\u4e0e\u56fe\u7247text-align:center\u5782\u76f4\u5c45\u4e2ddemo<\/a><\/p>\n<p>\u7ed3\u679c\uff0c\u4e4b\u524d\u75c5\u6079\u6079\u7684IE\u6d4f\u89c8\u5668\u6d3b\u4e86\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-10_002414.png\" width=\"441\" height=\"427\" alt=\"IE\u6d4f\u89c8\u5668text-align\u4e0b\u7684\u5782\u76f4\u5c45\u4e2d\" class=\"alignnone\" \/><\/p>\n<p>\u7531\u4e8e\u6211\u4eec\u76f4\u63a5\u4f7f\u7528\u5185\u8054\u7279\u6027\u8fdb\u884c\u63a7\u5236\u7684\uff0c\u56e0\u6b64\uff0cIE7\u6d4f\u89c8\u5668\u4e5f\u662f\u53ef\u4ee5\u5b9e\u73b0<code>text-align:center<\/code>\u4e0b\u7684\u56fe\u7247\u5782\u76f4\u5c45\u4e2d\uff0c\u4f46\u662f\uff0c\u6839\u636e\u6211\u5728IE11\u2198IE7\u4e0b\u7684\u6d4b\u8bd5\uff0c<code>writing-mode<\/code>\u9700\u8981\u5199\u5728\u6700\u540e\u91cd\u7f6e\u4e0b\uff08\u539f\u751f\u4f30\u8ba1\u4e0d\u4f1a\u8fd9\u6837\uff09\uff0c\u56e0\u6b64\uff0c\u5b8c\u6574\u7684<code>writing-mode<\/code>\u4ee3\u7801\u4e3a\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>.verticle-mode {\n    writing-mode: tb-rl;\n    -webkit-writing-mode: vertical-rl;      \n    writing-mode: vertical-rl;\n    *writing-mode: tb-rl;\n}<\/pre>\n<\/div>\n<p><strong>\u8865\u5145\u4e8e2017-12-04<\/strong><br \/>\nliyongleihf2006\u6839\u636e\u672c\u6587\u7075\u611f\uff0c\u5b9e\u73b0\u4e86\u5177\u6709\u5982\u4e0b\u4f18\u70b9\u7684\u6c34\u5e73\u5782\u76f4\u5c45\u4e2d\u6548\u679c\uff1a<\/p>\n<ul>\n<li>\u4e0a\u4e0b\u5de6\u53f3\u5c45\u4e2d<\/li>\n<li>\u7eafcss\u5b9e\u73b0<\/li>\n<li>\u65e0\u5b9a\u4f4d<\/li>\n<li>\u5c45\u4e2d\u5143\u7d20\u4e0d\u9700\u8981\u8bbe\u7f6e\u5bbd\u9ad8<\/li>\n<li>\u9002\u5e94\u6027\u8d85\u5f3a<\/li>\n<li>\u517c\u5bb9ie8<\/li>\n<\/ul>\n<p>demo\u5730\u5740\u4e3a\uff1a<a href=\"https:\/\/liyongleihf2006.github.io\/center-box\/\" rel=\"noopener\" target=\"_blank\">https:\/\/liyongleihf2006.github.io\/center-box\/<\/a><\/p>\n<p><strong>4. \u53ef\u4ee5\u4f7f\u7528text-indent\u5b9e\u73b0\u6587\u5b57\u4e0b\u6c89\u6548\u679c<\/strong><br \/>\n\u8fd9\u662f\u771f\u5b9e\u9879\u76ee\u4f8b\u5b50\uff0c\u8981\u589e\u52a0\u4e00\u4e2a\u6309\u94ae\u6309\u4e0b\u6587\u5b57\u4e0b\u6c89\u7684\u6548\u679c\u3002\u5982\u679c\u4f60\u6765\u5b9e\u73b0\uff0c\u4f60\u4f1a\u8fd9\u4e48\u5b9e\u73b0\u5462\uff1f\u884c\u9ad8\u63a7\u5236\uff1f\u4f46\u9ed8\u8ba4\u6587\u672c\u5c31\u4e0d\u5c45\u4e2d\uff08\u5bf9\u4e8e\u9ad8\u5ea6\u81ea\u9002\u5e94\u7684\u6309\u94ae\uff0cline-height\u4e0b\u6c89\u4e3a\u4e86\u907f\u514d\u6309\u94ae\u9ad8\u5ea6\u53d8\u5316\uff0c\u9ed8\u8ba4\u662f\u4e0d\u80fd\u5b8c\u5168\u5c45\u4e2d\u7684\uff09\u3002padding+height\u7cbe\u786e\u63a7\u5236\uff0c\u53c8\u7565\u70e6\u3002\u7136\u800c\uff0c\u5728<code>writing-mode<\/code>\u5782\u76f4\u6d41\u4e0b\uff0c\u6211\u4eec\u53c8\u6709\u4e86\u65b0\u601d\u8def\uff0c\u4f8b\u5982\uff0c\u76f4\u63a5\u4f7f\u7528<code>text-indent<\/code>\u5b9e\u73b0\u5782\u76f4\u65b9\u5411\u7684\u63a7\u5236\uff0c\u6ca1\u60f3\u5230\u5427\uff0c\u65e0\u9700\u5173\u5fc3height\u9ad8\u5ea6padding\u95f4\u8ddd\u5927\u5c0f\uff0c\u4efb\u4f55\u6309\u94ae\u90fd\u53ef\u4ee5\u901a\u7528\uff0c\u56e0\u4e3a<code>text-indent<\/code>\u4e0d\u4f1a\u5f71\u54cd\u5143\u7d20\u539f\u672c\u7684\u76d2\u5e03\u5c40\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201604\/writing-mode-text-indent-vertical-down.html\" target=\"_blank\">CSS writing-mode\u4e0etext-indent\u6587\u5b57\u4e0b\u6c89\u6548\u679cdemo<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/2016-04-26_211751.png\" width=\"252\" height=\"202\" alt=\"\u70b9\u51fb\u6309\u94ae\u6587\u5b57\u4e0b\u6c89\" class=\"alignnone\" \/><\/p>\n<p>\u5305\u62ecIE7\u5728\u5185\u7684\u6d4f\u89c8\u5668\u90fd\u662f\u652f\u6301\u7684(\u540c\u4e0a\u6700\u540e\u8981<code>*writing-mode<\/code>\u8986\u76d6\u4e0b)\u90fd\u662f\u652f\u6301\u4e0b\u6c89\u7684\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u6709\u5982\u6b64\u7684\u5b9e\u73b0\u5462\uff1f\u8fd9\u8981\u5f52\u529f\u4e8e\u4e2d\u6587\uff0c\u5728\u5782\u76f4\u6d41\u6392\u7248\u7684\u65f6\u5019\uff0c\u4e2d\u6587\u662f\u4e0d\u4f1a\u65cb\u8f6c\u7684\uff0c\u8fd8\u662f\u76f4\u7acb\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u867d\u7136\u6211\u4eec\u8089\u773c\u770b\u4e0a\u53bb\u6587\u5b57\u6ca1\u4ec0\u4e48\u53d8\u5316\uff0c\u4f46\u662f\uff0c\u5e03\u5c40\u6d41\u5df2\u7ecf\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u4ee5\u524d\u7c7b\u4f3c<code>text-indent<\/code>\/<code>letter-spacing<\/code>\u7b49\u6c34\u5e73\u63a7\u5236\u5c5e\u6027\u90fd\u4f5c\u7528\u5728\u5782\u76f4\u65b9\u5411\u4e86\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u6211\u4eec\u8fd9\u4e2a\u4f8b\u5b50\u6bd4\u8f83\u5de7\u7684\u662f\u6309\u94ae\u6587\u5b57\u53ea\u6709\u4e00\u4e2a\uff0c\u8981\u662f\u6309\u94ae\u6587\u5b57\u6709\u591a\u4e2a\uff0c\u6015\u662f\u5c31\u6ca1\u8fd9\u4e48\u8f7b\u677e\u548c\u7edd\u5999\u4e86\u3002<\/p>\n<p><strong>5. \u53ef\u4ee5\u5b9e\u73b0\u5168\u517c\u5bb9\u7684icon fonts\u56fe\u6807\u7684\u65cb\u8f6c\u6548\u679c<\/strong><br \/>\n\u5728\u8001\u7684IE\u6d4f\u89c8\u5668\u4e0b\uff0c\u6211\u4eec\u8981\u5b9e\u73b0\u5c0f\u56fe\u6807\u7684\u65cb\u8f6c\u6548\u679c\u662f\u4e0d\u662f\u5f88\u70e6\uff1f\u8981\u4f7f\u7528IE\u7684\u65cb\u8f6c\u6216\u7ffb\u8f6c\u6ee4\u955c(filter)\u4ec0\u4e48\u7684\uff0c\u5177\u4f53\u53ef\u53c2\u89c1\u6211\u4e4b\u524d\u7684\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=1637\">CSS\u5782\u76f4\u7ffb\u8f6c\/\u6c34\u5e73\u7ffb\u8f6c\u63d0\u9ad8web\u9875\u9762\u8d44\u6e90\u91cd\u7528\u6027<\/a>\u201d\u4ee5\u53ca\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=1505\">IE\u77e9\u9635\u6ee4\u955cMatrix\u65cb\u8f6c\u4e0e\u7f29\u653e\u53ca\u7ed3\u5408transform\u7684\u62d3\u5c55<\/a>\u201d\u4e00\u6587\u3002<\/p>\n<p>\u73b0\u5728\u6211\u4eec\u6709\u4e86<code>writing-mode<\/code>\uff0c\u6211\u4eec\u5c31\u4e0d\u8981\u8fd9\u4e48\u70e6\u5fc3\u4e86\u3002<\/p>\n<p>\u524d\u9762\u53ef\u80fd\u4e5f\u6ce8\u610f\u5230\u4e86\uff0c\u5f53<code>writing-mode<\/code>\u628a\u6587\u6863\u53d8\u6210\u5782\u76f4\u6d41\u7684\u65f6\u5019\uff0c\u6211\u4eec\u7684\u82f1\u6587\u548c\u6570\u5b57\u7b26\u53f7\u662f\u4f1a\u201c\u8eba\u7740\u201d\u663e\u793a\uff0c\u4e5f\u5c31\u662f\u5929\u713690\u00b0\u65cb\u8f6c\u4e86\u3002\u6b64\u65f6\uff0c\u6211\u4eec\u4e0d\u59a8\u8111\u6d1e\u5927\u5f00\u4e00\u4e0b\uff0c\u5047\u5982\u6211\u4eec\u4f7f\u7528icon fonts\u6280\u672f\u8ba9\u8fd9\u4e9b\u5b57\u7b26\u76f4\u63a5\u6620\u5c04\u67d0\u4e2a\u5c0f\u56fe\u6807\uff0c\u90a3\u5c82\u4e0d\u662f\u677e\u677e\u5b9e\u73b0\u5c0f\u56fe\u6807\u65cb\u8f6c\u4e86\uff0c\u5173\u952e\u5728\u4e8e\uff0c\u5c31\u7b97\u662f\u5343\u5e74\u6740\u7684IE6,IE7\u6d4f\u89c8\u5668\u4e5f\u662f\u652f\u6301\u7684\u554a\uff0c\u8fd9\u8981\u6bd4\u6ee4\u955c\u4ec0\u4e48\u7684\u7b80\u5355\u591a\u4e86\uff01<\/p>\n<p>\u773c\u89c1\u4e3a\u5b9e\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201604\/writing-mode-font-face-icon-rotate.html\" target=\"_blank\">writing-mode\u5b9e\u73b0icon fonts\u56fe\u6807\u65cb\u8f6c\u6548\u679cdemo<\/a><\/p>\n<p>\u5c31\u7b97\u662fIE7\u6d4f\u89c8\u5668\uff0c\u4e5f\u662f\u5f88\u7ed9\u529b\u7684\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/2016-04-27_213310.png\" width=\"401\" height=\"266\" alt=\"writing-mode\u5b9e\u73b0\u5168\u6d4f\u89c8\u5668\u7684\u56fe\u6807\u65cb\u8f6c\u6548\u679c\" class=\"alignnone\" \/><\/p>\n<p><strong>6. \u5145\u5206\u5229\u7528\u9ad8\u5ea6\u7684\u9ad8\u5ea6\u81ea\u9002\u5e94\u5e03\u5c40<\/strong><br \/>\n\u5367\u69fd\uff0c\u4e0d\u884c\u4e86\uff0c\u5185\u5bb9\u592a\u591a\u4e86\uff0c\u4e94\u4e00\u524d\u4e5f\u5199\u4e0d\u5b8c\u4e86\u2026\u2026<\/p>\n<p>\u5f80\u4e0b\u76847,8,9,10\u4e00\u8d77\u90fd\u7565\u4e86\u5427~~<\/p>\n<p>\u603b\u4e4b\uff0c\u653e\u5f00\u81ea\u5df1\u7684\u5927\u8111\uff0c\u7406\u8bba\u4e0a\u8bb2\uff0c\u6709\u4e86<code>writing-mode<\/code>\uff0c\u6211\u4eec\u80fd\u591f\u505a\u7684\u4e8b\u60c5\u6bd4\u4ee5\u524d\u591a\u4e8650%\uff0c\u5c31\u6015\u4f60\u60f3\u4e0d\u5230\uff0c\u4e0d\u6015\u505a\u4e0d\u5230\u3002<\/p>\n<h3>\u56db\u3001writing-mode\u548cdirection\u7684\u5173\u7cfb<\/h3>\n<p>\u4e0a\u4e2a\u6708\u521a\u521a\u4ecb\u7ecd\u4e86CSS <code>direction<\/code>\u5c5e\u6027\uff0c\u4e5f\u662f\u4e2a\u597d\u4e1c\u897f\uff0c\u5177\u4f53\u53c2\u89c1\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2016\/03\/css-direction-introduction-apply\/\">CSS direction\u5c5e\u6027\u7b80\u4ecb\u4e0e\u5b9e\u9645\u5e94\u7528<\/a>\u201d\uff0c\u5176\u53ef\u4ee5\u6539\u53d8\u6587\u5b57\u7684\u8d70\u5411\uff0c\u90a3\u4ed6\u548c<code>writing-mode<\/code>\u662f\u4e2a\u4ec0\u4e48\u5173\u7cfb\u5462\uff1f<\/p>\n<p><code>writing-mode<\/code>, <code>direction<\/code>, <code>unicode-bidi<\/code>(<a href=\"https:\/\/developer.mozilla.org\/zh-CN\/docs\/Web\/CSS\/unicode-bidi\" target=\"_blank\">MDN\u6587\u6863<\/a>)\u662fCSS\u4e16\u754c\u4e2d3\u5927\u53ef\u4ee5\u6539\u53d8\u6587\u672c\u5e03\u5c40\u6d41\u5411\u7684\u5c5e\u6027\u3002\u5176\u4e2d<code>direction<\/code>, <code>unicode-bidi<\/code>\u5c5e\u4e8e\u8fd1\u4eb2\uff0c\u7ecf\u5e38\u5728\u4e00\u8d77\u4f7f\u7528\uff0c\u4e5f\u662f\u552f\u4e00\u4e24\u4e2a\u4e0d\u53d7<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2016\/03\/know-about-css3-all\/\">CSS3 all\u5c5e\u6027<\/a>\u5f71\u54cd\u7684CSS\u5c5e\u6027\uff0c\u57fa\u672c\u4e0a\u5c31\u662f\u548c\u5185\u8054\u5143\u7d20\u4e00\u8d77\u4f7f\u7528\u4f7f\u7528\uff0c\u4e14\u636e\u8bf4\u8c8c\u4f3c\u4e3a\u963f\u62c9\u4f2f\u6587\u5b57\u8bbe\u8ba1\u3002<\/p>\n<p>\u4e4d\u4e00\u770b\uff0c<code>writing-mode<\/code>\u4f3c\u4e4e\u5305\u542b\u4e86<code>direction<\/code>, <code>unicode-bidi<\/code>\u67d0\u4e9b\u529f\u80fd\u548c\u884c\u4e3a\uff0c\u4f8b\u5982<code>vertical-rl<\/code>\u7684<code>rl<\/code>\u548c<code>direction<\/code>\u7684<code>rtl<\/code>\u503c\u6709\u76f8\u4f3c\u4e4b\u5904\uff0c\u90fd\u662f\u4ece\u53f3\u5f80\u5de6\u3002\u7136\u800c\uff0c\u5b9e\u9645\u4e0a\uff0c\u4e24\u8005\u662f\u6ca1\u6709\u4ea4\u96c6\u7684\u3002\u56e0\u4e3a<code>vertical-rl<\/code>\u6b64\u65f6\u7684\u6587\u6863\u6d41\u4e3a\u5782\u76f4\u65b9\u5411\uff0c<code>rl<\/code>\u8868\u793a\u6c34\u5e73\u65b9\u5411\uff0c\u6b64\u65f6\u518d\u8bbe\u7f6e<code>direction:rtl<\/code>\uff0c\u5b9e\u9645\u4e0a\u503c<code>rtl<\/code>\u6539\u53d8\u7684\u662f\u5782\u76f4\u65b9\u5411\u7684\u5185\u8054\u5143\u7d20\u7684\u6587\u672c\u65b9\u5411\uff0c\u4e00\u6a2a\u4e00\u7eb5\uff0c\u6ca1\u6709\u4ea4\u96c6\u3002\u800c\u4e14<code>writing-mode<\/code>\u53ef\u4ee5\u5bf9\u5757\u72b6\u5143\u7d20\u4ea7\u751f\u5f71\u54cd\uff0c\u76f4\u63a5\u6539\u53d8\u4e86CSS\u4e16\u754c\u7684\u7eb5\u6a2a\u89c4\u5219\uff0c\u8981\u6bd4<code>direction<\/code>\u5f3a\u5927\u548c\u9b3c\u755c\u7684\u591a\u3002\u4e14\u636e\u8bf4\u8c8c\u4f3c\u4e3a\u4e1c\u4e9a\u6587\u5b57\u8bbe\u8ba1\u3002<\/p>\n<p>\u7136\u800c\uff0cCSS\u7684\u5947\u5999\u5c31\u5728\u4e8e\uff0c\u67d0\u4e9b\u7279\u6027\u5f53\u521d\u53ef\u80fd\u5c31\u662f\u95ee\u4e86\u67d0\u4e9b\u56fe\u6587\u6392\u7248\u8bbe\u8ba1\uff0c\u4f46\u662f\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u5176\u5e26\u6765\u7684\u7279\u6027\uff0c\u53d1\u6325\u81ea\u5df1\u7684\u521b\u9020\u529b\uff0c\u5b9e\u73b0\u5176\u4ed6\u5f88\u591a\u610f\u60f3\u4e0d\u5230\u7684\u6548\u679c\u3002\u6240\u4ee5\uff0c\u4e0a\u9762\u51fa\u73b0\u7684\u4e09\u5251\u5ba2\u90fd\u662f\u975e\u5e38\u597d\u7684\u8d44\u6e90\u3002<\/p>\n<h3>\u4e94\u3001writing-mode\u548c*-start\u5c5e\u6027\u7684\u6d41\u673a\u5236<\/h3>\n<p>CSS3\u4e2d\u51fa\u73b0\u4e86\u8bf8\u591a<code>*-start<\/code>\/<code>*-end<\/code>\u5c5e\u6027\uff08\u4ea6\u79f0\u4e3a<a href=\"https:\/\/drafts.csswg.org\/css-logical-props\/\">CSS\u903b\u8f91\u5c5e\u6027<\/a>\uff09\uff0c\u4f8b\u5982\uff1a<code>margin-start<\/code>\/<code>margin-end<\/code>, <code>border-start<\/code>\/<code>border-end<\/code>, <code>padding-start<\/code>\/<code>padding-end<\/code>, \u4ee5\u53ca<code>text-align:start<\/code>\/<code>text-align:end<\/code>\u58f0\u660e\u3002<\/p>\n<p>\u4e0b\u9762\u95ee\u9898\u6765\u4e86\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u8e66\u51fa\u8fd9\u4e48\u591a<code>*-start<\/code>\/<code>*-end<\/code>\u9b3c\uff1f<\/p>\n<p>\u90a3\u662f\u56e0\u4e3a\u73b0\u4ee3\u6d4f\u89c8\u5668\u52a0\u5f3a\u4e86\u5bf9\u6d41\u7684\u652f\u6301\uff0c\u5305\u62ec\u8001\u6c5f\u6e56<code>direction<\/code>\uff0c\u4ee5\u53ca\u6700\u8fd1\u5e74\u6708\u8ddf\u8fdb\u7684<code>writing-mode<\/code>\u3002<\/p>\n<p>\u5728\u5f88\u4e45\u4ee5\u524d\uff0c\u6211\u4eec\u7684\u8ba4\u77e5\u91cc\uff0c\u7f51\u9875\u5e03\u5c40\u5c31\u4e00\u79cd\u6d41\u5411\uff0c\u5c31\u662f\u4ece\u5de6\u5f80\u53f3\uff0c\u4ece\u4e0a\u5f80\u4e0b\uff0c\u56e0\u6b64\uff0c\u6211\u4eec\u4f7f\u7528<code>margin-left<\/code>\/<code>margin-right<\/code>\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u3002\u4f46\u662f\uff0c\u5982\u679c\u6211\u4eec\u6d41\u662f\u53ef\u4ee5\u53d8\u5316\u7684\uff0c\u4f8b\u5982\uff0c\u4e00\u5f20\u56fe\u7247\u8ddd\u79bb\u5de6\u8fb9\u7f1820\u50cf\u7d20\uff0c\u6211\u4eec\u5e0c\u671b\u5176\u6587\u6863\u6d41\u662f\u4ece\u53f3\u5f80\u5de6\uff0c\u540c\u65f6\u8ddd\u79bb\u53f3\u4fa7\u662f20\u50cf\u7d20\uff0c\u600e\u4e48\u529e\uff1f<\/p>\n<p>\u6b64\u65f6\uff0c<code>margin-left:20px<\/code>\u5728\u56fe\u7247<code>direction<\/code>\u53d8\u5316\u540e\uff0c\u5c31\u65e0\u6548\u4e86\uff1b\u4f46\u662f\uff0c<code>margin-start<\/code>\u5c31\u4e0d\u4f1a\u6709\u6b64\u95ee\u9898\uff0c\u6240\u8c13start, \u6307\u7684\u662f\u6587\u6863\u6d41\u5f00\u59cb\u7684\u65b9\u5411\uff0c\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u9875\u9762\u662f\u9ed8\u8ba4\u7684\u6587\u6863\u6d41\uff0c\u5219<code>margin-start<\/code>\u7b49\u540c\u4e8e<code>margin-left<\/code>\uff0c\u5982\u679c\u662f\u6c34\u5e73\u4ece\u53f3\u5f80\u5de6\u6587\u6863\u6d41\uff0c\u5219<code>margin-start<\/code>\u7b49\u540c\u4e8e<code>margin-right<\/code>\u3002<code>margin-end<\/code>\u4e5f\u662f\u7c7b\u4f3c\u7684\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/baibian.jpg\" width=\"200\" height=\"113\" alt=\"\u767e\u53d8\u661f\u541b\u5267\u7167\" class=\"alignnone\" \/><\/p>\n<p>webkit\u5185\u6838\u7684\u6d4f\u89c8\u5668\u8fd8\u652f\u6301<code>*-before<\/code>\u548c<code>*-end<\/code>\uff0c\u9ed8\u8ba4\u6d41\u4e0b\u7684<code>margin-before<\/code>\u8fd1\u4f3c\u4e8e<code>margin-top<\/code>\uff0c<code>margin-after<\/code>\u8fd1\u4f3c\u4e8e<code>margin-bottom<\/code>\uff0c\u7136\u800c\uff0c\u89c4\u8303\u8c8c\u4f3c\u6ca1\u63d0\u53ca\uff0cFireFox\u4e5f\u6ca1\u652f\u6301\uff0c<code>*-before<\/code>\u548c<code>*-after<\/code>\u51fa\u573a\u7684\u673a\u4f1a\u5e76\u4e0d\u591a\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f\u56e0\u4e3a\u5b9e\u9645\u4e0a\uff0c\u914d\u5408writing-mode\uff0c<code>*-start<\/code>\/<code>*-end<\/code>\u5df2\u7ecf\u53ef\u4ee5\u6ee1\u8db3\u6211\u4eec\u5bf9\u903b\u8f91\u4f4d\u7f6e\u7684\u9700\u6c42\u4e86\uff0c\u6c34\u5e73\u548c\u5782\u76f4\u90fd\u53ef\u4ee5\u63a7\u5236\uff0c\u5bf9\u7acb\u65b9\u5411\u9002\u7528\u8001\u7684<code>*-top<\/code>\/<code>*-bottom<\/code>.<\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u4eec\u8bbe\u7f6e<code>writing-mode<\/code>\u503c\u4e3a<code>vertical-rl<\/code>\uff0c\u6b64\u65f6<code>margin-start<\/code>\u7b49\u540c\u4e8e<code>margin-top<\/code>\uff0c\u5982\u679c\u6b64\u65f6<code>margin-start<\/code>\uff0c<code>margin-top<\/code>\u540c\u65f6\u5b58\u5728\uff0c\u4f1a\u9075\u5faa\u6743\u91cd\u548c\u540e\u6765\u5c45\u4e0a\u539f\u5219\u8fdb\u884c\u76f8\u4e92\u7684\u8986\u76d6\u3002<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u573a\u666f\u4e0d\u540c\uff0c<code>margin-start<\/code>\u7684\u4f5c\u7528\u4e5f\u4e0d\u80fd\uff0c\u80fd\u4e0a\u80fd\u4e0b\uff0c\u80fd\u5de6\u80fd\u53f3\u7b80\u76f4\u5728\u4e16\u767e\u53d8\u661f\u541b\u3002<\/p>\n<p>\u5173\u4e8e<code>*-start<\/code>\/<code>*-end<\/code>\u4ee5\u540e\u6709\u673a\u4f1a\u4f1a\u5177\u4f53\u5c55\u5f00\u8bba\u8ff0\uff0c\u8fd9\u91cc\u5c31\u5148\u70b9\u5230\u4e3a\u6b62\uff0c\u5927\u5bb6\u4f30\u8ba1\u76ee\u524d\u4e5f\u4e0d\u4f1a\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u4f7f\u7528\u3002<\/p>\n<h3>\u516d\u3001\u7ed3\u675f\u8bed<\/h3>\n<p>\u6211\u7a81\u7136\u60f3\u5531\u4e00\u9996\u6b4c\uff1a\u201c\u7ec8\u4e8e\u7b49\u5230\u4f60\uff0c\u8fd8\u597d\u6211\u6ca1\u653e\u5f03\u2026\u2026\u201d<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u4ece\u4e0a\u4e0a\u5468\u5468\u672b\u5c31\u5f00\u59cb\u5199\uff0c\u4e00\u76f4\u5230\u4eca\u5929\u624d\u7ed3\u8bed\uff0c2\u5468\u65f6\u95f4\u4e86\u3002<\/p>\n<p>\u4e00\u662f\u6362\u4e86\u65b0\u73af\u5883\uff0c\u4f5c\u606f\u751f\u7269\u949f\u8fd8\u4e0d\u4e60\u60ef\uff1b\u4e8c\u662f\u5de5\u4f5c\u5fd9\u554a\uff0c\u52a0\u73ed\u6bd4\u8f83\u591a\uff1b\u4e09\u662f\u5468\u672b\u8981\u4f1a\u4e08\u6bcd\u5a18\u5bb6\u62b1\u5c0f\u670b\u53cb\uff1b\u56db\u662f\u6587\u7ae0\u5185\u5bb9\u6bd4\u8f83\u591a\uff0c\u5f88\u96be\u62bd\u51fa\u5927\u7684\u65f6\u95f4\u7247\u6bb5\u3002<\/p>\n<p>\u73b0\u5728\u770b\u6765\uff0c\u8d76\u5728\u4e94\u4e00\u524d\u5b8c\u6210\u5e94\u8be5\u4e0d\u6210\u95ee\u9898\u4e86\uff0c\u7b97\u662f\u4e86\u4e86\u4e2a\u8282\u524d\u5c0f\u5fc3\u613f\u3002<\/p>\n<p>OK\uff0c\u8bf4\u70b9\u6b63\u7ecf\u7684\u3002<\/p>\n<p>\u56db\u6708\u65b0\u756a\u91cc\u9762\u5f88\u591a\u7247\u5b50\u4e0d\u9519\uff0c\u6bd4\u65b9\u8bf4\u300aRE\u4ece\u96f6\u5f00\u59cb\u7684\u5f02\u4e16\u754c\u300b\uff0c\u5267\u60c5\u4e0d\u9519\uff1b\u300a\u6211\u7684\u82f1\u96c4\u5b66\u9662\u300b\uff0c\u636e\u8bf4\u662f\u300a\u4e00\u62f3\u8d85\u4eba\u300b\u524d\u4f20\uff0c\u6211\u5c31\u79d1\u79d1\u4e86\uff0c\u7537\u4e3b\u592a\u5e9f\u67f4\uff0c\u8fd8\u6709\u300a\u6587\u8c6a\u91ce\u72ac\u300b\uff0c\u636e\u8bf4\u7537\u4e3b\u540e\u671f\u8d85\u540a\u7684\u7b49\u2026\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201801\/re0.jpg\" width=\"240\" height=\"150\" alt=\"RE\u4ece\u96f6\u5f00\u59cb\u7684\u5f02\u4e16\u754c\" class=\"alignnone\" \/><\/p>\n<p>\u611f\u8c22\u9605\u8bfb\uff0c\u6b22\u8fce\u53cd\u9988\u6587\u4e2d\u8868\u8ff0\u4e0d\u51c6\u786e\u7684\u5730\u65b9\uff0c\u6b22\u8fce\u4ea4\u6d41\u3002<\/p>\n<p> <img decoding=\"async\" src=\"http:\/\/mat1.gtimg.com\/www\/mb\/images\/face\/14.gif\" align=\"absmiddle\"><\/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(\u56fe\u7247\u8bf7\u52ff\u76f4\u63a5\u5916\u94fe)\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=5352\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=5352<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5352\" title=\"\u70b9\u51fb\u67e5\u770b\u672c\u6587\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201604\/writing-mode-cover.jpg\" width=\"550\" height=\"170\"  class=\"imgpad\"><\/a><br \/>\nwriting-mode\u8fd9\u4e2aCSS\u5c5e\u6027\uff0c\u6211\u4eec\u662f\u4e0d\u662f\u5f88\u5c11\u89c1\u5230\uff0c\u5f88\u5c11\u7528\u5230\uff01\u6211\u4eec\u5f80\u5f80\u79f0\u4e0d\u5e38\u89c1\u7684\u4e1c\u897f\u4e3a\u201c\u751f\u50fb\u201d\uff0c\u5c31\u50cf\u662f\u4e0d\u5e38\u89c1\u7684\u6587\u5b57\u6211\u4eec\u53eb\u201c\u751f\u50fb\u5b57\u201d\uff0c\u56e0\u6b64\u4e0d\u5e38\u89c1\u7684CSS\u5c5e\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u53eb\u505a\u201c\u751f\u50fb\u5c5e\u6027\u201d\uff0cwriting-mode\u7ed9\u6211\u4eec\u7684\u611f\u89c9\u5c31\u662f\u4e00\u4e2a\u201c\u751f\u50fb\u5c5e\u6027\u201d\uff0c\u5f88\u5f31\uff0c\u53ef\u6709\u53ef\u65e0\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5b9e\u9645\u4e0a\uff0c\u6211\u4eec\u90fd\u9519\u4e86\uff0c\u5927\u9519\u7279\u9519\uff0cwriting-mode\u5f88\u5f31\uff1f\u5367\u69fd\uff0c\u522b\u5f00\u73a9\u7b11\u4e86\uff0cwriting-mode\u53ef\u4ee5\u8bf4\u662fCSS\u4e16\u754c\u91cc\u9762\u6700\u9006\u5929\u7684CSS\u5c5e\u6027\u4e86\uff0c\u76f4\u63a5\u98a0\u8986CSS\u4e16\u754c\u7684\u4f17\u591a\u89c4\u5219\u2026\u2026<\/p>\n<p>\u672c\u6708\u4e3a4\u6708\u538b\u8f74\u4f5c\u54c1\uff0c\u5927\u91cfdemo\uff0c\u5927\u91cf\u8111\u6d1e\u5927\u5f00\u7684\u521b\u610f\u5904\u7406\uff0c\u5e0c\u671b\u53ef\u4ee5\u5bf9\u60a8\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\u3002<\/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":[1045,655,1054,1053,853,1046,241],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5352"}],"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=5352"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5352\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=5352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=5352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=5352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}