{"id":5685,"date":"2016-09-30T00:35:39","date_gmt":"2016-09-29T16:35:39","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5685"},"modified":"2017-04-16T00:18:17","modified_gmt":"2017-04-15T16:18:17","slug":"css-first-letter-pseudo-element","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2016\/09\/css-first-letter-pseudo-element\/","title":{"rendered":"\u6df1\u5165CSS ::first-letter\u4f2a\u5143\u7d20\u53ca\u5176\u5b9e\u4f8b\u7b49"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5685\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=5685<\/a><br \/>\n\u672c\u6587\u5168\u6587\u8f6c\u8f7d\u9700\u8d2d\u4e70\u7248\u6743(500\u00a5)\uff0c\u6458\u8981\u5f15\u6d41\u5219\u514d\u8d39\uff0c\u5177\u4f53<a href=\"http:\/\/www.zhangxinxu.com\/sp\/copyright.html\" target=\"_blank\">\u53c2\u89c1\u8fd9\u91cc<\/a><\/p>\n<h3>\u4e00\u3001\u4e86\u89e3::first-letter\u4f2a\u5143\u7d20\u5230\u5e95\u4ec0\u4e48\u610f\u601d<\/h3>\n<p>\u5f88\u591a\u5e74\u524d\uff0cChrome\u6d4f\u89c8\u5668\u8fd8\u6ca1\u51fa\u8eab\uff0cIE9\u8fd8\u672a\u51fa\u73b0\u7684\u65f6\u5019\uff0c<code>first-letter<\/code>\u90a3\u65f6\u5019\u8fd8\u53eb\u505a\u4f2a\u7c7b\u9009\u62e9\u5668\uff0c\u5199\u6cd5\u662f\u4e00\u4e2a\u5192\u53f7\uff0c\u5982\u65af<code>:first-letter<\/code>\uff0c\u90a3\u65f6\u5019\u7684\u8bed\u4e49\u8981\u66f4\u76f4\u767d\u4e00\u4e9b\uff0c\u9009\u62e9\u7b2c\u4e00\u4e2a\u5b57\u7b26\uff0c\u7136\u540e\u8bbe\u7f6e\u4e00\u4e9b\u6837\u5f0f\u3002\u540e\u6765\uff0c\u4f2a\u7c7b\u548c\u4f2a\u5143\u7d20\u88ab\u5212\u5206\u5730\u66f4\u52a0\u660e\u786e\u548c\u89c4\u8303\u4e86\uff0c<code>::after<\/code>, <code>::before<\/code>, <code>::backdrop<\/code>, <code>::first-letter<\/code>, <code>::first-line<\/code>, <code>::selection<\/code>\uff08<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2010\/10\/css-css3-selection-range\/\">\u6587\u7ae0\u53c2\u89c1\u8fd9\u91cc<\/a>\uff09\u662f\u4f2a\u5143\u7d20\uff0c<code>:active<\/code>, <code>:focus<\/code>, <code>:checked<\/code>\u7b49\u7b49\u88ab\u79f0\u4e3a\u4f2a\u7c7b\u3002\u5bfc\u81f4<code>::first-letter<\/code>\u7684\u8bed\u4e49\u53d1\u751f\u4e86\u4e00\u4e9b\u53d8\u5316\u2014\u2014<strong>\u9996\u5b57\u7b26\u4f5c\u4e3a\u5143\u7d20\u7684\u5047\u60f3\u5b50\u5143\u7d20<\/strong>\u3002<\/p>\n<p>\u6ce8\u610f\u8fd9\u91cc\u7684\u4e00\u4e9b\u63aa\u8f9e\uff0c\u201c\u5047\u60f3\u7684\u201d\u5bf9\u5e94\u201c\u4f2a\u201d\uff0c\u4ee5\u53ca\u51fa\u73b0\u7684\u201c\u5b50\u5143\u7d20\u201d\u8fd9\u4e2a\u540d\u8bcd\uff0c\u8fd9\u4e9b\u5728\u7406\u89e3<code>first-letter<\/code>\u4e00\u4e9b\u6837\u5f0f\u8868\u73b0\u7684\u65f6\u5019\u975e\u5e38\u91cd\u8981\u3002<\/p>\n<h3>\u4e8c\u3001::first-letter\u4f2a\u5143\u7d20\u751f\u6548\u7684\u524d\u63d0<\/h3>\n<p>\u8981\u60f3<code>::first-letter(:first-letter)<\/code>\u4f2a\u5143\u7d20\u751f\u6548\uff0c\u662f\u9700\u8981\u4e00\u5b9a\u7684\u6761\u4ef6\u7684\uff0c\u800c\u4e14\u6761\u4ef6\u4e4d\u4e00\u770b\u8fd8\u633a\u82db\u523b\u3002<\/p>\n<p><strong>1. \u9996\u5148<\/strong>\uff0c\u5143\u7d20\u7684<code>display<\/code>\u8ba1\u7b97\u503c\u5fc5\u987b\u662f <code>block<\/code>, <code>inline-block<\/code>, <code>table-cell<\/code>, <code>list-item<\/code>\u6216\u8005<code>table-caption<\/code>\uff0c\u5176\u4ed6\u6240\u6709<code>display<\/code>\u8ba1\u7b97\u503c\u90fd\u6ca1\u6709\u7528\uff0c\u5305\u62ec<code>display:table<\/code>\u4ee5\u53ca<code>display:flex<\/code>\u7b49\u3002<\/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\/201609\/first-letter-with-display-value.html\" target=\"_blank\">display\u5c5e\u6027\u503c\u4e0e::first-letter\u751f\u6548\u5173\u7cfbdemo<\/a><\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u4eec\u9009\u62e9<code>display:flex<\/code>\uff0c\u7ed3\u679c\uff0c\u9996\u5b57\u6bcd\u662f\u9ed1\u8272\u800c\u4e0d\u662f\u7ea2\u8272\uff0c\u8bf4\u660e<code>display:flex<\/code>\u5143\u7d20\u4e0d\u652f\u6301<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201609\/2016-09-29_221855.png\" width=\"409\" height=\"188\" alt=\"display:flex\u5143\u7d20\u4e0d\u652f\u6301::first-letter\u4f2a\u5143\u7d20\" class=\"alignnone\" \/><\/p>\n<p><strong>2. \u7136\u540e<\/strong>\uff0c\u4e0d\u662f\u6240\u6709\u7684\u5b57\u7b26\u90fd\u80fd\u5355\u72ec\u4f5c\u4e3a<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u5b58\u5728\u7684\uff0c\u4ec0\u4e48\u610f\u601d\u5462\uff0c\u6211\u4eec\u770b\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5982\u4e0bCSS\u548cHTML\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>p:first-letter { color: #cd0000; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;p&gt;\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f&lt;\/p&gt;<\/pre>\n<\/div>\n<p>\u6309\u7167\u6211\u4eec\u7684\u8ba4\u77e5\uff0c\u662f\u4e0d\u662f\u5e94\u8be5\u7b2c\u4e00\u4e2a\u95ee\u53f7\u5e94\u8be5\u662f\u7ea2\u8272\u7684\uff0c\u5b9e\u9645\u4e0a\uff0c\u62b1\u6b49\uff0c\u5168\u90e8\u90fd\u662f\u9ed8\u8ba4\u9ed1\u8272\uff0c\u4e0b\u9762\u8fd9\u4e00\u884c\u5c31\u662f\u5b9e\u65f6\u663e\u793a\u7684\u6548\u679c\uff1a<\/p>\n<style>.ask-letter{background:#f0f3f9;padding:5px;}.ask-letter:first-letter { color: #cd0000; }<\/style>\n<p class=\"ask-letter\">\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f<\/p>\n<p>\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n<p>\u8fd9\u662f\u56e0\u4e3a\u5e38\u89c1\u7684\u6807\u70b9\u7b26\u53f7\uff0c\u5404\u7c7b\u62ec\u53f7\u548c\u5f15\u53f7\u5728<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u773c\u4e2d\u5168\u90e8\u90fd\u662f\u201c\u8f85\u52a9\u7c7b\u201d\u5b57\u7b26\uff0c\u6709\u70b9\u4eac\u4e1c\u4e70\u4e1c\u897f\u9001\u7684\u8d60\u54c1\u7684\u611f\u89c9\uff0c\u4f46\u662f\u8d60\u54c1\u672c\u8eab\u5374\u4e0d\u80fd\u8d2d\u4e70\uff0c\u8fd9\u91cc\u7684\u95ee\u53f7\uff08\uff1f\uff09\u5c31\u5c5e\u4e8e\u8d60\u54c1\u3002\u6709\u4e9b\u4e0d\u7406\u89e3\uff0c\u6211\u4eec\u770b\u4e86\u4f8b\u5b50\u5c31\u77e5\u9053\u4e86\uff0c\u5047\u5982\u6211\u4eec\u5728\u4e0a\u9762HTML\u4e00\u5806\u95ee\u53f7\u540e\u9762\u5199\u4e0a\u4e00\u4e9b\u5185\u5bb9\u5b57\u7b26\uff0c\u6bd4\u65b9\u8bf4\u4e2d\u6587\u201c\u8f85\u52a9\u201d\u4e8c\u5b57\uff0c\u7ed3\u679c\u6548\u679c\u662f\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n<p class=\"ask-letter\">\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\u8f85\u52a9<\/p>\n<p>\u201c\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\uff1f\u8f85\u201d\u5168\u90e8\u90fd\u7ea2\u8272\u4e86\uff0c\u5c0f\u6837\u8fd8\u633a\u6709\u4e2a\u6027\u7684\uff0c\u8981\u4e48\u4e0d\u7ea2\uff0c\u8981\u7ea2\u5c31\u7ea2\u4e00\u5927\u6ce2\u3002\u539f\u56e0\u662f\uff0c\u201c\u8f85\u52a9\u201d\u4e8c\u5b57\u624d\u662f<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u771f\u6b63\u8981\u6536\u5165\u56ca\u4e2d\u4f5c\u4e3a\u201c\u4f2a\u5143\u7d20\u201d\u7684\u5b57\u7b26\uff0c\u4f46\u662f\u73b0\u5728\u524d\u9762\u51fa\u73b0\u4e86\u4e00\u5806\u4e0d\u611f\u5192\u7684\u95ee\u53f7\uff08\uff1f\uff09\uff0c\u600e\u4e48\u529e\u5462\uff1f\u90a3\u5c31\u5f53\u505a\u662f\u8d60\u54c1\u4e00\u5e76\u6536\u4e86\uff0c\u4e8e\u662f\uff0c\u4e00\u5927\u6ce2\u5b57\u7b26\u5168\u90fd\u7ea2\u8272\u4e86\u3002\u5982\u679c\u5168\u662f\u95ee\u53f7\uff08\uff1f\uff09\uff0c\u7531\u4e8e\u6ca1\u6709\u4e3b\u5546\u54c1\uff0c\u81ea\u7136\u4e5f\u5c31\u65e0\u6cd5\u83b7\u5f97\u8d60\u54c1\uff0c\u6240\u4ee5<code>::first-letter<\/code>\u6ca1\u6709\u9009\u62e9\u4efb\u4f55\u5b57\u7b26\uff0c\u95ee\u53f7\u5168\u90e8\u90fd\u662f\u9ed1\u8272\u3002<\/p>\n<p>\u4e0b\u9762\u6709\u5c0f\u4f19\u4f34\u53ef\u80fd\u4f1a\u7591\u95ee\uff0c\u62ff\u5230\u5e95\u54ea\u4e9b\u5b57\u7b26\u5c5e\u4e8e\u201c\u8d60\u54c1\u201d\uff0c\u54ea\u4e9b\u5c5e\u4e8e\u201c\u5546\u54c1\u201d\u5462\uff0c\u6211\u7279\u610f\u6574\u4e86\u4e2ademo\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201609\/first-letter-special-character.html\" target=\"_blank\">CSS ::first-letter\u4e0e\u7279\u6b8a\u5b57\u7b26\u5173\u7cfb\u6d4b\u8bd5demo<\/a><\/p>\n<p>\u4e0b\u56fe\u4e3ademo\u622a\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201609\/2016-09-29_225433.png\" width=\"521\" height=\"338\" alt=\"\u7279\u6b8a\u5b57\u7b26\u4e0e::first-letter\u5173\u7cfb\" class=\"alignnone\" \/><\/p>\n<p>\u603b\u7ed3\u4e0b\u6765\u5c31\u662f\uff0c\u201c\u8d60\u54c1\u5b57\u7b26\u201d\u5305\u62ec\uff1a<code>\u00b7<\/code><code>@<\/code><code>#<\/code><code>%<\/code><code>&amp;<\/code><code>*<\/code><code>(<\/code><code>)<\/code><code>\uff08<\/code><code>\uff09<\/code><code>[<\/code><code>]<\/code><code>\u3010<\/code><code>\u3011<\/code><code>{<\/code><code>}<\/code><code>:<\/code><code>\uff1a<\/code><code>\"<\/code><code>\u201c<\/code><code>\u201d<\/code><code>;<\/code><code>\uff1b<\/code><code>'<\/code><code>\u2018<\/code><code>\u2019<\/code><code>\u300b<\/code><code>\u300a<\/code><code>,<\/code><code>\uff0c<\/code><code>.<\/code><code>\u3002<\/code><code>\uff1f<\/code><code>?<\/code><code>!<\/code><code>\uff01<\/code><code>\u2026<\/code><code>*<\/code><code>\u3001<\/code><code>\/<\/code><code>\\<\/code>\u3002<\/p>\n<p>\u6b63\u5e38\u76f4\u63a5\u53ef\u4ee5\u4f5c\u4e3a\u4f2a\u5143\u7d20\u7684\u5b57\u7b26\u5c31\u662f\u6570\u5b57\uff0c\u82f1\u6587\u5b57\u6bcd\uff0c\u4e2d\u6587\u4ee5\u53ca<code>$<\/code>\u4ee5\u53ca\u4e00\u4e9b\u8fd0\u7b97\u7b26\u4ee5\u53ca\u975e\u5e38\u5bb9\u6613\u5ffd\u89c6\u7684<strong>\u7a7a\u683c<\/strong>\u7b49\u3002\u8fd9\u91cc\u7a7a\u683c\u6709\u5fc5\u8981\u518d\u52a0\u7c97\u5f3a\u8c03\u4e0b\uff0c\u5f88\u5bb9\u6613\u5ffd\u89c6\u7684\u4e00\u4e2a\u5b57\u7b26\u3002<\/p>\n<p><span class=\"s\">\/\/zxx: \u9700\u8981\u6ce8\u610f\u7684\u662fIE7\u6d4f\u89c8\u5668\u4e0b\u201c\u8d60\u54c1\u5b57\u7b26\u201d\u8981\u5c11\u5f88\u591a\u5f88\u591a\uff0cIE8+\u6d4f\u89c8\u5668\u5f00\u59cb\u5927\u7edf\u4e00<\/span><\/p>\n<p><strong>3. \u6700\u540e<\/strong>\uff0c\u5b57\u7b26\u524d\u9762\u4e0d\u80fd\u6709\u56fe\u7247\u6216\u8005<code>inline-table<\/code>\u4e4b\u7c7b\u7684\u5143\u7d20\u5b58\u5728\uff0c\u4f8b\u5982\uff0c\u4e0b\u9762\u7684HTML\u548cCSS\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>p:first-letter { color: #cd0000; }<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;p&gt;&lt;i style=\"display:inline-block\"&gt;&lt;\/i&gt;\u7ea2\u8272&lt;\/p&gt;<\/pre>\n<\/div>\n<p>\u7ed3\u679c\uff1a<\/p>\n<p class=\"ask-letter\"><i style=\"display:inline-block\"><\/i>\u7ea2\u8272<\/p>\n<p>\u5c31\u56e0\u4e3a\u591a\u4e86\u4e00\u4e2a<code>display<\/code>\u503c\u662f<code>inline-block<\/code>\u5c3a\u5bf8\u4e3a<code>0<\/code>\u7684<code>&lt;i&gt;<\/code>\u5143\u7d20\uff0c\u5bfc\u81f4<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u76f4\u63a5\u9171\u6cb9\u4e86\u3002<\/p>\n<p>\u6709\u4eba\u53ef\u80fd\u4f1a\u7591\u95ee\uff0c\u8981\u662f\u662f<code>::before<\/code>\u4f2a\u5143\u7d20\u751f\u6210\u7684\u5462\uff1f<\/p>\n<p>\u4e00\u822c\u6765\u8bb2\uff0c<code>::before<\/code>\u4f2a\u5143\u7d20\u548c\u666e\u901a\u5143\u7d20\u4e4b\u95f4\u6ca1\u6709\u591a\u5c11\u74dc\u845b\uff0c\u4f8b\u5982\uff0c<code>:first-child<\/code>, <code>:empty<\/code>\u4e4b\u7c7b\u7684\u9009\u62e9\u5668\u90fd\u4e0d\u53d7\u5f71\u54cd\uff0c\u5177\u4f53\u53ef\u53c2\u89c1\u6211\u4e4b\u524d\u7814\u7a76\u7684\u6587\u7ae0\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/2015\/04\/before-after-pseudo-elements-special-features\/\" target=\"_blank\">CSS\u4e4bbefore, after\u4f2a\u5143\u7d20\u7279\u6027\u8868\u73b0\u4e24\u5219<\/a>\u201d\u3002\u4f46\u662f\uff0c\u7531\u4e8e<code>::first-letter<\/code>\u4ed6\u4e5f\u662f\u4f2a\u5143\u7d20\uff0c\u6240\u8c13\u9c7c\u914d\u9c7c\u867e\u914d\u867e\uff0c\u4e4c\u9f9f\u914d\u738b\u516b\uff0c\u7531\u4e8e\u5927\u5bb6\u90fd\u662f\u4f2a\u5143\u7d20\uff0c\u603b\u4f1a\u6709\u4e9b\u4e0d\u53ef\u78e8\u706d\u7684\u57fa\u60c5\u3002<\/p>\n<p>\u7528\u4e13\u4e1a\u672f\u8bed\u6982\u62ec\u5c31\u662f\uff1a<code>::before<\/code>\u4f2a\u5143\u7d20\u4e5f\u53c2\u4e0e<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5982\u4e0bCSS\u548cHTML\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>p:before {\n    content: '\u65b0\u95fb\uff1a';\n}\np:first-letter {\n    color: #cd0000;\n}<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;p&gt;\u9524\u5b50\u79d1\u628010\u670818\u65e52016\u4e0a\u6d77\u65b0\u54c1\u53d1\u5e03\u4f1a&lt;\/p&gt;<\/pre>\n<\/div>\n<p>\u7ed3\u679c\u5982\u4e0b\u622a\u56fe\u6240\u793a\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201609\/2016-09-29_232836.png\" width=\"347\" height=\"115\" alt=\"::before\u4f2a\u5143\u7d20\u4e0e::first-letter\u4f2a\u5143\u7d20\u5173\u7cfb\" class=\"alignnone\" \/><\/p>\n<p>\u5982\u82e5\u4e0d\u4fe1\uff0c\u53ef\u70b9\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201609\/first-letter-before-pseudo-element.html\" target=\"_blank\">::before\u4f2a\u5143\u7d20\u4e0e\u88ab::first-letter\u4f2a\u5143\u7d20\u83b7\u53d6demo<\/a><\/p>\n<p>\u5305\u62ecIE8\u5728\u5728\u5185\u7684\u6d4f\u89c8\u5668\u90fd\u662f\u8fd9\u6837\u7684\u8868\u73b0\u3002<\/p>\n<h3>\u4e09\u3001::first-letter\u4f2a\u5143\u7d20\u53ef\u4ee5\u751f\u6548\u7684CSS\u5c5e\u6027<\/h3>\n<p>\u5982\u679c\u5b57\u7b26\u88ab\u9009\u4f5c\u4e86<code>::first-letter<\/code>\u4f2a\u5143\u7d20\uff0c\u5e76\u4e0d\u662f\u50cf<code>::before<\/code>\u4f2a\u5143\u7d20\u90a3\u6837\uff0c\u51e0\u4e4e\u6240\u6709CSS\u90fd\u6709\u6548\uff0c\u4ec5\u4ec5\u662f\u4e00\u90e8\u5206\uff0c\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u6240\u6709\u5b57\u4f53\u76f8\u5173\u5c5e\u6027\uff1a<code>font<\/code>, <code>font-style<\/code>, <code>font-variant<\/code>, <code>font-weight<\/code>, <code>font-size<\/code>, <code>line-height<\/code>\u4ee5\u53ca<code>font-family<\/code>.<\/li>\n<li>\u6240\u6709\u80cc\u666f\u76f8\u5173\u5c5e\u6027\uff1a<code>background-color<\/code>, <code>background-image<\/code>, <code>background-position<\/code>, <code>background-repeat<\/code>, <code>background-size<\/code>, \u4ee5\u53ca<code>background-attachment<\/code>.<\/li>\n<li>\u6240\u6709<code>margin<\/code>\u76f8\u5173\u5c5e\u6027\uff1a<code>margin<\/code>, <code>margin-top<\/code>, <code>margin-right<\/code>, <code>margin-bottom<\/code>, <code>margin-left<\/code>.<\/li>\n<li>\u6240\u6709<code>padding<\/code>\u76f8\u5173\u5c5e\u6027\uff1a<code>padding<\/code>, <code>padding-top<\/code>, <code>padding-right<\/code>, <code>padding-bottom<\/code>, <code>padding-left<\/code>.<\/li>\n<li>\u6240\u6709border\u76f8\u5173\u5c5e\u6027\uff1a\u7f29\u5199\u7684<code>border<\/code>, <code>border-style<\/code>, <code>border-color<\/code>, <code>border-width<\/code>\u53ca\u666e\u901a\u4e66\u5199\u7684\u5c5e\u6027\u3002<\/li>\n<li><code>color<\/code>\u5c5e\u6027\u3002<\/li>\n<li><code>text-decoration<\/code>, <code>text-transform<\/code>, <code>letter-spacing<\/code>, <code>word-spacing<\/code>(\u5408\u9002\u60c5\u5883\u4e0b), <code>line-height<\/code>, <code>float<\/code>, <code>vertical-align<\/code>\uff08\u53ea\u6709\u5f53<code>float<\/code>\u4e3a<code>none<\/code>\u7684\u65f6\u5019\uff09\u8fd9\u4e9bCSS\u5c5e\u6027\u4eec.<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u5927\u5bb6\u5982\u679c\u5984\u56fe\u4f7f\u7528<code>visibility:hidden<\/code>\u6216\u8005<code>display:none<\/code>\u9690\u85cf<code>::first-letter<\/code>\u4f2a\u5143\u7d20\uff0c\u90a3\u8fd8\u662f\u7701\u7701\u5427\u3002<\/p>\n<h3>\u56db\u3001::first-letter\u4f2a\u5143\u7d20\u4e00\u4e9b\u6709\u610f\u601d\u7684\u7279\u70b9<\/h3>\n<p><strong>1. \u652f\u6301\u90e8\u5206display\u5c5e\u6027\u503c\u6807\u7b7e\u5d4c\u5957<\/strong><br \/>\n<strong>::first-letter<\/strong>\u4f2a\u5143\u7d20\u83b7\u53d6\u53ef\u4ee5\u8de8\u6807\u7b7e\uff0c\u4e5f\u5c31\u662f\u4e0d\u4ec5\u80fd\u9009\u62e9\u533f\u540d\u5185\u8054\u76d2\u5b50\uff0c\u8fd8\u80fd\u900f\u8fc7\u5c42\u5c42\u6807\u7b7e\u8fdb\u884c\u9009\u62e9\uff0c\u4f46\u662f\uff0c\u4e5f\u662f\u6709\u4e00\u4e9b\u9650\u5236\uff0c\u5e76\u4e0d\u662f\u6240\u6709\u6807\u7b7e\u5d4c\u5957\u90fd\u662f\u6709\u7528\u7684\u3002<\/p>\n<p><code>display<\/code>\u503c\u5982\u679c\u662f<code>inline<\/code>, <code>block<\/code>, <code>table<\/code>, <code>table-row<\/code>, <code>table-caption<\/code>, <code>table-cell<\/code>, <code>list-item<\/code>\u90fd\u662f\u53ef\u4ee5\u7684\uff1b\u4f46\u662f\u4e0d\u80fd\u662f<code>inline-block<\/code>, <code>inline-table<\/code>\uff0c\u4f1a\u76f4\u63a5\u65e0\u6548\uff1b\u800c<code>display:flex<\/code>\u5219\u6539\u53d8\u4e86\u89c4\u5219\uff0c\u76f4\u63a5\u9009\u62e9\u4e86\u4e0b\u4e00\u884c\u7684\u5b57\u7b26\u5185\u5bb9\u3002<\/p>\n<p>\u8bed\u8a00\u82cd\u767d\uff0c\u773c\u89c1\u4e86\u7136\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201609\/first-letter-with-tag-nesting.html\" target=\"_blank\">CSS ::first-letter\u4e0e\u5404\u79cd\u7c7b\u578b\u6807\u7b7e\u5d4c\u5957demo<\/a><\/p>\n<p>\u6211\u4eec\u8fd8\u662f\u4ee5<code>display:flex<\/code>\u505a\u6548\u679c\u793a\u610f\uff0c\u5982\u4e0bCSS\u548cHTML\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>p:first-letter {\n    color: #cd0000;\n}\np > span {\n    display: flex;\n}<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;p&gt;&lt;span&gt;\u7b2c\u4e00\u4e2a&lt;\/span&gt;\u5b57\u7b26\u770b\u770b\u4f1a\u4e0d\u4f1a\u53d8\u7ea2\uff1f&lt;\/p&gt;<\/pre>\n<\/div>\n<p>\u7ed3\u679c\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201609\/2016-09-29_234758.png\" width=\"440\" height=\"202\" alt=\"\u5d4c\u5957\u5173\u7cfb\u4e0bdisplay:flex\u4e0efirst-letter\u4f2a\u5143\u7d20\u5173\u7cfb\" class=\"alignnone\" \/><\/p>\n<p>\u5e76\u4e14\uff0c\u8fd9\u79cd\u5d4c\u5957\u5173\u7cfb\u652f\u6301\u591a\u5c42\u5d4c\u5957\uff0c\u5c31\u662f\uff0c\u8fde\u7eed\u5957\u4e2a4~5\u5c42<code>inline<\/code>\u6c34\u5e73\u7684\u6807\u7b7e\uff0c\u548c\u6ca1\u6709\u4efb\u4f55\u6807\u7b7e\u5d4c\u5957\u6548\u679c\u662f\u4e00\u6837\u7684\u3002<\/p>\n<p><strong>2. \u989c\u8272\u7b49\u6743\u91cd\u6c38\u8fdc\u6700\u9ad8<\/strong><br \/>\n\u8fd9\u662f\u662f\u5c0f\u4f19\u4f34\u975e\u5e38\u5bb9\u6613\u72af\u7684\u4e00\u4e2a\u9519\u8bef\uff0c\u4e5f\u662fCSS\u4e16\u754c10\u5927\u4e0d\u7406\u89e3\u95ee\u9898\u4e4b\u4e00\uff0c\u4f8b\u5982\u4e0b\u9762\u8fd9\u4e2a\u95ee\u9898\uff0c\u662f\u67d0\u540c\u884c\u90ae\u4ef6\u95ee\u6211\u7684\uff0c\u6211\u7b80\u5355\u7f16\u8f91\u4e86\u4e0b\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>p:first-letter {\n    color: red;\n}\np > span {\n    color: blue!important;\n}<\/pre>\n<\/div>\n<div class=\"zxx_code\">\n<pre>&lt;p&gt;&lt;span&gt;\u7b2c\u4e00\u4e2a&lt;\/span&gt;\u5b57\u7b26\u770b\u770b\u4f1a\u4e0d\u4f1a\u53d8\u7ea2\uff1f&lt;\/p&gt;<\/pre>\n<\/div>\n<p>\u8bf7\u95ee\u201c\u7b2c\u201d\u8fd9\u4e2a\u5b57\u7b26\u7684\u989c\u8272\u662f\u4ec0\u4e48\uff1f<\/p>\n<p>\u57fa\u672c\u4e0a\uff0c\u8d85\u8fc795%\u7684\u524d\u7aef\u5c0f\u4f19\u4f34\u4f1a\u8ba4\u4e3a\u662f<code>blue<\/code>\uff0c\u56e0\u4e3a\u5927\u5bb6\u90fd\u662f\u4eceCSS\u9009\u62e9\u5668\u6743\u91cd\u7684\u89d2\u5ea6\u53bb\u8003\u8651\u7684\uff0c\u672c\u8eab\u662f\u6ca1\u95ee\u9898\uff0c\u4f46\u662f\u5374\u5ffd\u7565\u4e86\u5f88\u91cd\u8981\u7684\u4e00\u4e2a\u70b9\uff0c<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u5176\u5b9e\u662f\u4f5c\u4e3a\u5b50\u5143\u7d20\u5b58\u5728\u7684\uff0c\u6216\u8005\u8bf4\u5e94\u5f53\u770b\u51fa\u662f\u5b50\u5143\u7d20\uff0c\u4e8e\u662f\uff0c\u5c31\u5f88\u597d\u7406\u89e3\u4e86\uff0c\u5bf9\u4e8e\u7c7b\u4f3c<code>color<\/code>\u8fd9\u6837\u7684\u7ee7\u627f\u5c5e\u6027\uff0c\u5b50\u5143\u7d20\u7684CSS\u8bbe\u7f6e\u4e00\u5b9a\u6bd4\u7236\u5143\u7d20\u7684\u7ea7\u522b\u8981\u9ad8\uff0c\u54ea\u6015\u7236\u7ea7\u4f7f\u7528\u4e86\u91cd\u91cf\u7ea7\u7684<code>!important<\/code>\uff0c\u56e0\u4e3a\u5b50\u5143\u7d20\u4f1a\u5148\u7ee7\u627f\uff0c\u7136\u540e\u518d\u5e94\u7528\u81ea\u8eab\u8bbe\u7f6e\uff0c\u6240\u4ee5\uff0c\u4e0a\u9762CSS\u548cHTML\u7684\u6700\u7ec8\u7ed3\u679c\u662f\uff0c\u7b2c\u4e00\u4e2a\u5b57\u7b26\u201c\u7b2c\u201d\u5b57\u7684\u989c\u8272\u662f<code>red<\/code>\u7ea2\u8272\uff01<\/p>\n<p>\u8fd9\u5c31\u662f<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u7684\u53e6\u5916\u4e00\u4e2a\u91cd\u8981\u7279\u6027\uff0c\u989c\u8272\u7b49\u6743\u91cd\u6c38\u8fdc\u6700\u9ad8\u3002<\/p>\n<p>\u5173\u4e8e\u6b64\u989c\u8272\u6848\u4f8b\uff0c\u5982\u679c\u89c9\u5f97\u6000\u7591\uff0c\u53ef\u4ee5\u4eb2\u773c\u89c1\u8bc1\u4e0b\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201609\/first-letter-color-important.html\" target=\"_blank\">::first-letter\u4f2a\u5143\u7d20\u989c\u8272\u6743\u91cd\u6c38\u8fdc\u6700\u9ad8demo<\/a><\/p>\n<p>\u7ed3\u679c\u5982\u4e0b\u622a\u56fe\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201609\/2016-09-30_000932.png\" width=\"300\" height=\"141\" alt=\"color\u5728first-letter\u4e2d\u7684\u6743\u91cd\u6700\u9ad8\" class=\"alignnone\" \/><\/p>\n<h3>\u4e94\u3001::first-letter\u4e00\u4e9b\u5b9e\u9645\u5e94\u7528\u4e3e\u4f8b<\/h3>\n<p>\u6570\u5e74\u524d\u66fe\u4ecb\u7ecd\u8fc7<code>first-letter<\/code>\u4e00\u4e2a\u517c\u5bb9IE6,IE7\u53ef\u4ee5\u8ba9<code>inline-block<\/code>\u5143\u7d20\u9690\u85cf\u6587\u5b57\u7684\u65b9\u6cd5\uff0c\u540d\u53eb\u201c<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=3557\">letter-spacing+first-letter\u5b9e\u73b0\u6309\u94ae\u6587\u5b57\u9690\u85cf<\/a>\u201d\u3002<\/p>\n<p>\u8fd9\u91cc\u518d\u5c55\u793a\u4e00\u4e2a\u5b9e\u9645\u5e94\u7528\uff0c\u662f\u6c34\u54e5\u4e4b\u524d\u8ddf\u6211\u63d0\u53ca\u7684\u3002\u5c31\u662f\u7535\u5546\u4ea7\u54c1\u7ecf\u5e38\u4f1a\u6709\u4ef7\u683c\uff0c\u4ef7\u683c\u524d\u9762\u4e00\u822c\u90fd\u662f\u6709\u4e2a\u7f8a\u89d2\u7b26\u53f7<code>\u00a5<\/code>\uff0c\u8868\u793a\u4ef7\u94b1\u3002\u5f80\u5f80\u8fd9\u4e2a\u7f8a\u89d2\u7b26\u53f7\u5b57\u4f53\u4f1a\u6bd4\u8f83\u7279\u6b8a\uff0c\u5b57\u53f7\u4e5f\u6bd4\u8f83\u5927\uff0c\u540c\u65f6\u548c\u6587\u5b57\u7684\u6570\u503c\u6709\u51e0\u50cf\u7d20\u7684\u8ddd\u79bb\u3002\u8981\u5b9e\u73b0\u8fd9\u91cc\u7684\u6548\u679c\uff0c\u6211\u4eec\u901a\u5e38\u7684\u505a\u6cd5\u662f\u5728\u7f8a\u89d2\u7b26\u53f7<code>\u00a5<\/code>\u5916\u9762\u5305\u4e2a<code>span<\/code>\u6807\u7b7e\uff0c\u547d\u540d\u4e2a\u7c7b\u540d\uff0c\u7136\u540e\u901a\u8fc7CSS\u63a7\u5236\uff0c\u5b9e\u9645\u4e0a\uff0c\u6709\u66f4\u7b80\u5355\u5de7\u5999\u7684\u65b9\u6cd5\uff0c\u5c31\u662f\u4f7f\u7528\u672c\u6587\u4ecb\u7ecd\u7684<code>::first-letter<\/code>\u4f2a\u5143\u7d20\u3002<\/p>\n<p>\u5982\u4e0bCSS\u793a\u610f\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>.price:first-letter {\n    margin-right: 5px;\n    font-size: xx-large;\n    vertical-align: -2px;\n}<\/pre>\n<\/div>\n<p>\u4e8e\u662f\uff0c\u6211\u4eec\u7684HTML\u5c31\u53ef\u4ee5\u5f88\u7b80\u6d01\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>&lt;p&gt;\u00a5399&lt;\/p&gt;<\/pre>\n<\/div>\n<p>\u7f8a\u89d2\u7b26\u53f7<code>\u00a5<\/code>\u5e76\u4e0d\u662f\u201c\u8d60\u54c1\u201d\u5b57\u7b26\uff0c\u56e0\u6b64\uff0c\u8fd9\u91cc\u53ef\u884c\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/study\/201609\/first-letter-example-no-tag-ui-control.html\" target=\"_blank\">CSS ::first-letter\u5de7\u5999\u63a7\u5236\u7f8a\u89d2\u7b26\u53f7demo<\/a><\/p>\n<p>\u7ed3\u679c\u622a\u56fe\u5982\u4e0b\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/201609\/2016-09-30_002203.png\" width=\"240\" height=\"143\" alt=\"\u53c8\u5927\u53c8\u80a5\u7684\u7f8a\u89d2\u7b26\u53f7\" class=\"alignnone\" \/><\/p>\n<h3>\u516d\u3001\u5173\u4e8e::first-letter\u7684\u7ed3\u675f\u8bed<\/h3>\n<p>\u9996\u5148\uff0c<code>::first-letter<\/code>\u672c\u8eab\u517c\u5bb9\u6027\u975e\u5e38\u597d\uff0c\u5982\u679c\u662fPC\u9879\u76ee\uff0c\u9700\u8981\u517c\u987eIE8\u6d4f\u89c8\u5668\u7684\uff0c\u4f7f\u7528\u5355\u5192\u53f7\u5199\u6cd5<code>:first-letter<\/code>\uff0c\u5305\u62ecIE6\u5728\u5185\u7684\u6d4f\u89c8\u5668\u90fd\u652f\u6301\uff1b\u5982\u679c\u662f\u5185\u90e8\u9879\u76ee\u6216\u8005\u79fb\u52a8\u7aef\u9879\u76ee\uff0c\u5efa\u8bae\u4f7f\u7528\u53cc\u5192\u53f7<code>::first-letter<\/code>\uff0c\u5927\u53ef\u653e\u5fc3\u4f7f\u7528\u3002<\/p>\n<p>\u5b9e\u9645\u4e0a\uff0c\u7ec6\u7ec6\u4f53\u5473\uff0c\u4f1a\u53d1\u73b0\uff0c\u867d\u7136<code>::first-letter<\/code>\u517c\u5bb9\u6027\u5f88\u597d\uff0c\u6d4f\u89c8\u5668\u5f88\u65e9\u5c31\u652f\u6301\uff0c\u4f46\u662f\u6211\u4eec\u5b9e\u9645\u9879\u76ee\u7528\u5f97\u5e76\u4e0d\u591a\uff0c\u90a3\u662f\u56e0\u4e3a\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5d4c\u5957<code>span<\/code>\u6807\u7b7e\u7684\u65b9\u5f0f\uff0c\u5b9e\u73b0\u66f4\u4e3a\u5e7f\u6cdb\u66f4\u7075\u6d3b\u7684\u6837\u5f0f\u63a7\u5236\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5b9e\u9645\u5f00\u53d1\u573a\u666f\u5343\u5343\u4e07\uff0c\u603b\u4f1a\u9047\u5230HTML\u7ed3\u6784\u4e0d\u80fd\u6539\u52a8\uff0c\u6216\u8005\u6539\u52a8\u6210\u672c\u5f88\u9ad8\u7684\u7684\u60c5\u51b5\u3002\u6240\u8c13\u201cHTML\u7ed3\u6784\u4e0d\u80fd\u6539\u52a8\u201d\u6bd4\u65b9\u8bf4\u7528\u6237\u901a\u8fc7\u5bcc\u6587\u672c\u7f16\u8f91\u5668\u751f\u6210\u7684\u5185\u5bb9\uff0c\u52a8\u6001\u5185\u5bb9\u4e0d\u53d7\u63a7\u5236\uff1b\u201c\u6539\u52a8\u6210\u672c\u5f88\u9ad8\u201d\u4e00\u4e9b\u6309\u94ae\u6216\u8005\u57fa\u7840\u7684UI\u7ec4\u4ef6\u5df2\u7ecf\u904d\u5e03\u5728\u9879\u76ee\u7684\u5404\u4e2a\u89d2\u843d\uff0c\u6b64\u65f6\uff0c\u518d\u60f3\u7ed9\u6240\u6709\u7684\u6807\u7b7e\u91cd\u65b0\u5d4c\u5957\u7ed3\u6784\uff0c\u6210\u672c\u5c31\u5f88\u9ad8\u4e86\u3002\u7c7b\u4f3c\u8fd9\u6837\u7684\u60c5\u51b5\uff0c<code>::first-letter<\/code>\/<code>::first-line<\/code>\u7b49\u5c31\u975e\u5e38\u6709\u7528\uff0c\u800c\u4e14\u591a\u534a\u626e\u6f14\u82f1\u96c4\u6216\u8005\u6551\u661f\u7684\u89d2\u8272\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u867d\u7136<code>::first-letter<\/code>\u7528\u5f97\u5c11\uff0c\u4f46\u5e76\u4e0d\u8868\u793a\u6ca1\u6709\u7528\uff0c\u60f3\u6cd5\uff0c\u7279\u6b8a\u573a\u666f\u53ef\u4ee5\u529b\u633d\u72c2\u6f9c\u3002\u5927\u5bb6\u53ea\u9700\u624e\u5b9e\u57fa\u7840\uff0c\u7b49\u9047\u5230\u7c7b\u4f3c\u9700\u6c42\u65f6\u5019\uff0c\u81ea\u7136\u4f1a\u6563\u53d1\u51fa\u5927\u795e\u5149\u8292\uff0c\u5404\u79cd\u5947\u5de7\u5999\u62db\u624b\u5230\u64d2\u6765\u3002<\/p>\n<p>\u597d\uff0c\u5c31\u8bf4\u8fd9\u4e48\u591a\uff0c9\u6708\u6700\u540e1\u5929\u8d76\u51fa\u7684\u6587\u7ae0\uff0c\u795d\u5927\u5bb6\u56fd\u5e86\u8282\u5feb\u4e50\uff01<\/p>\n<p>\u884c\u6587\u5306\u5fd9\uff0c\u51fa\u9519\u5728\u6240\u96be\u514d\uff0c\u6b22\u8fce\u6307\u6b63\uff0c\u4e5f\u6b22\u8fce\u5404\u79cd\u5f62\u5f0f\u7684\u6280\u672f\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\u5c0a\u91cd\u8f9b\u52e4\u52b3\u52a8\uff0c\u53ef\u4ee5\u514d\u8d39\u6458\u8981\u3001\u63a8\u8350\u6216\u805a\u5408\uff0c\u4f46\u5b8c\u6574\u8f6c\u8f7d\u9700\u4ed8\u8d39\u8d2d\u4e70\u7248\u6743\uff0c\u8be6\u89c1<a href=\"http:\/\/www.zhangxinxu.com\/sp\/copyright.html\" target=\"_blank\">\u8f6c\u8f7d\u534f\u8bae\u58f0\u660e<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=5685\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=5685<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\uff0c<code>::first-letter<\/code>\u672c\u8eab\u517c\u5bb9\u6027\u975e\u5e38\u597d\uff0c\u7136\u800c\uff0c\u7ec6\u7ec6\u4f53\u5473\uff0c\u4f1a\u53d1\u73b0\uff0c\u867d\u7136<code>::first-letter<\/code>\u517c\u5bb9\u6027\u5f88\u597d\uff0c\u6d4f\u89c8\u5668\u5f88\u65e9\u5c31\u652f\u6301\uff0c\u4f46\u662f\u6211\u4eec\u5b9e\u9645\u9879\u76ee\u7528\u5f97\u5e76\u4e0d\u591a\uff0c\u90a3\u662f\u56e0\u4e3a\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5d4c\u5957<code>span<\/code>\u6807\u7b7e\u7684\u65b9\u5f0f\uff0c\u5b9e\u73b0\u66f4\u4e3a\u5e7f\u6cdb\u66f4\u7075\u6d3b\u7684\u6837\u5f0f\u63a7\u5236\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5b9e\u9645\u5f00\u53d1\u573a\u666f\u5343\u5343\u4e07\uff0c\u603b\u4f1a\u9047\u5230HTML\u7ed3\u6784\u4e0d\u80fd\u6539\u52a8\uff0c\u6216\u8005\u6539\u52a8\u6210\u672c\u5f88\u9ad8\u7684\u7684\u60c5\u51b5\uff0c\u6b64\u65f6<code>::first-letter<\/code>\u7b49\u5c31\u975e\u5e38\u6709\u7528\uff0c\u800c\u4e14\u591a\u534a\u626e\u6f14\u82f1\u96c4\u6216\u8005\u6551\u661f\u7684\u89d2\u8272\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":[366,852,844,536,499,216],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5685"}],"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=5685"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/5685\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=5685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=5685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=5685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}