{"id":9849,"date":"2021-02-16T23:27:17","date_gmt":"2021-02-16T15:27:17","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9849"},"modified":"2021-02-16T23:29:13","modified_gmt":"2021-02-16T15:29:13","slug":"css-marker-pseudo-element","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2021\/02\/css-marker-pseudo-element\/","title":{"rendered":"CSS ::marker\u4f2a\u5143\u7d20\u7b80\u4ecb"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9849\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9849<\/a><br \/>\n\u672c\u6587\u6b22\u8fce\u5206\u4eab\u4e0e\u805a\u5408\uff0c\u5168\u6587\u8f6c\u8f7d\u5c31\u4e0d\u5fc5\u4e86\uff0c\u5c0a\u91cd\u7248\u6743\uff0c\u5708\u5b50\u5c31\u8fd9\u4e48\u5927\uff0c\u82e5\u6025\u7528\u53ef\u4ee5\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202102-marker.png';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/marker-cover.png\" width=\"480\" height=\"306\" alt=\"\u6807\u8bb0\u5217\u8868\u9879\u76ee\u7b26\u53f7\u5360\u4f4d\u56fe\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<style>ol.marker li::marker{ color: deepskyblue; font-weight: bold;}div.marker {\n  display: list-item;\n  margin-left: 1em;\n  padding-left: 5px;\n}\ndiv.marker::marker {\n  content: '\u25b6';\n}<\/style>\n<h3>\u4e00\u3001\u4e86\u89e3::marker\u4f2a\u5143\u7d20<\/h3>\n<p><code>::marker<\/code>\u662fCSS\u4e2d\u65b0\u51fa\u7684\u4e00\u79cd\u4f2a\u5143\u7d20\uff0c\u7528\u6765\u5339\u914d\u5217\u8868\u9879\u4e2d\u7684\u201c\u6807\u8bb0\u76d2\u5b50\u201d\uff08\u76d2\u6a21\u578b\u4e2d\u7684\u4e00\u79cd\uff0c\u300aCSS\u4e16\u754c\u300b\u4e2d\u6709\u4ecb\u7ecd\uff09\uff0c\u5e76\u53ef\u4ee5\u8bbe\u7f6e\u6807\u8bb0\u76d2\u5b50\u91cc\u9762\u7684\u5185\u5bb9\u4ee5\u53ca\u4e0e\u5b57\u7b26\u663e\u793a\u76f8\u5173\u7684UI\u3002<\/p>\n<p>\u53ef\u4ee5\u5339\u914d\u4efb\u610f\u8bbe\u7f6e\u4e86<code>display:list-item<\/code>\u7684\u5143\u7d20\u6216\u4f2a\u5143\u7d20\uff0c\u4f8b\u5982\u5927\u5bb6\u6bd4\u8f83\u719f\u6089\u7684<code>&lt;li&gt;<\/code>\u5143\u7d20\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528::marker\u4f2a\u5143\u7d20\u6539\u53d8\u9879\u76ee\u7b26\u53f7\u989c\u8272\u3001\u5b57\u53f7\u5b57\u4f53\u3001\u751a\u81f3\u5185\u5bb9\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>&lt;ol&gt;\r\n    &lt;li&gt;\u6709\u5e8f\u5217\u8868&lt;\/li&gt;\r\n    &lt;li&gt;\u4f5c\u8005\u5f20\u946b\u65ed&lt;\/li&gt;\r\n    &lt;li&gt;\u770b\u770b\u5e8f\u53f7\u7684\u989c\u8272\uff1f&lt;\/li&gt;\r\n&lt;\/ol&gt;<\/pre>\n<pre>::maker {\r\n    color: deepskyblue;\r\n    font-weight: bold;\r\n}<\/pre>\n<p>\u5b9e\u65f6\u6548\u679c\u5982\u4e0b\u6240\u793a\uff08Chrome 86+\uff09\uff1a<\/p>\n<ol class=\"marker\">\n<li>\u6709\u5e8f\u5217\u8868<\/li>\n<li>\u4f5c\u8005\u5f20\u946b\u65ed<\/li>\n<li>\u770b\u770b\u5e8f\u53f7\u7684\u989c\u8272\uff1f<\/li>\n<\/ol>\n<h4>\u666e\u901a\u5143\u7d20\u5e94\u7528::marker<\/h4>\n<p>\u5982\u679c\u662f\u666e\u901a\u7684HTML\u6807\u7b7e\u5143\u7d20\uff0c\u4f8b\u5982<code>&lt;div&gt;<\/code>\u5143\u7d20\u60f3\u8981\u4f7f\u7528<code>::marker<\/code>\u4f2a\u5143\u7d20\uff0c\u53ef\u4ee5\u8bbe\u7f6e<code>display<\/code>\u4e3a<code>list-item<\/code>\uff0c\u4ee3\u7801\u793a\u610f\uff1a<\/p>\n<pre>&lt;div class=\"marker\"&gt;summary\u5143\u7d20\u6709\u81ea\u5df1\u7684marker\u4f2a\u5143\u7d20&lt;\/div&gt;<\/pre>\n<p>\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u6240\u793a\u7684CSS\u4ee3\u7801\u8ba9DIV\u5143\u7d20\u6709\u81ea\u5df1\u7684\u6807\u8bb0\uff1a<\/p>\n<pre>div.marker {\r\n  display: list-item;\r\n  margin-left: 1em;\r\n  padding-left: 5px;\r\n}\r\ndiv.marker::marker {\r\n  content: '\u25b6';\r\n}<\/pre>\n<p>\u5b9e\u65f6\u6e32\u67d3\u6548\u679c\u5982\u4e0b\uff08\u5de6\u4fa7\u5e94\u8be5\u662f\u4e2a\u4e09\u89d2\u5c16\u5934\uff0c\u5982\u679c\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u4f1a\u662f\u4e00\u4e2a\u5706\u70b9\uff0c\u5982\u679c\u4ec0\u4e48\u90fd\u6ca1\u6709\uff0c\u60a8\u8bbf\u95ee\u7684\u662f\u76d7\u7248\uff09\uff1a<\/p>\n<div class=\"marker\">summary\u5143\u7d20\u6709\u81ea\u5df1\u7684marker\u4f2a\u5143\u7d20<\/div>\n<p>\u5176\u4e2d\uff1a<\/p>\n<ul>\n<li><code>content:'\u25b6'<\/code>\u4e0d\u662f\u5fc5\u987b\u7684\uff0c\u9ed8\u8ba4\u5c31\u4f1a\u521b\u5efa\u7b26\u53f7\u2018\u00b7\u2019\u4f5c\u4e3a\u9879\u76ee\u7b26\u53f7\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/2021-02-16_214637.png\" width=\"306\" height=\"55\" alt=\"\u9ed8\u8ba4\u7684\u6807\u8bb0\u6548\u679c\" class=\"alignnone size-medium\" \/><\/li>\n<li><code>margin-left:1em<\/code>\u4e5f\u4e0d\u662f\u5fc5\u987b\u7684\uff0c\u53ef\u4ee5\u8bbe\u7f6e<code>list-style-position:inside<\/code>\u8ba9\u9879\u76ee\u7b26\u53f7\u5b57\u7b26\u7684\u4f4d\u7f6e\u5728\u6807\u7b7e\u5185\u3002<\/li>\n<li>\u6807\u8bb0\u5b57\u7b26\u53ef\u4ee5\u662f\u4efb\u610f\u5b57\u7b26\uff0c\u6570\u91cf\u4e5f\u4e0d\u9650\uff0c\u4f8b\u5982\uff1a\n<pre>div.marker::marker {\r\n  content: '\u2192\u2192\u2192\u2192\u2192';\r\n}<\/pre>\n<p>\u6b64\u65f6\u7684\u6548\u679c\u662f\u4e0b\u9762\u8fd9\u5e45\u6a21\u6837\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/2021-02-16_215153.png\" width=\"364\" height=\"54\" alt=\"marker\u662f\u591a\u5b57\u7b26\u6548\u679c\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u6ce8\u610f\uff0cSafari\u6d4f\u89c8\u5668\u76ee\u524d\u8fd8\u4e0d\u652f\u6301<code>content<\/code>\u81ea\u5b9a\u4e49\u6807\u8bb0\u7b26\u53f7\uff0c\u4ec5\u652f\u6301<code>list-style-type<\/code>\u5c5e\u6027\u8bbe\u7f6e\u6807\u8bb0\u7b26\u53f7\uff0c\u662f\u65f6\u5019\u796d\u51fa\u8fd9\u5f20\u5341\u51e0\u5e74\u7684\u8001\u56fe\u4e86\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" alt=\"list-style-type\u4e0d\u540c\u503c\u7684\u8868\u73b0\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/200912\/list-markers.png\" title=\"list-style-type\u4e0d\u540c\u503c\u7684\u8868\u73b0\" class=\"alignnone\" width=\"540\" height=\"241\"><\/p>\n<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u53ea\u652f\u6301\u90e8\u5206CSS<\/h3>\n<p>\u548c<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2016\/09\/css-first-letter-pseudo-element\/\">::first-letter\u4f2a\u5143\u7d20<\/a>\u3001::first-line\u4f2a\u5143\u7d20\u7c7b\u4f3c\uff0c<code>::marker<\/code>\u4f2a\u5143\u7d20\u4ec5\u652f\u6301\u90e8\u5206\u7684CSS\u5c5e\u6027\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u6240\u6709font\u76f8\u5173\u7684\u5c5e\u6027\uff0c\u4f8b\u5982<code>font-size<\/code>\uff0c<code>font-family<\/code>\u7b49\uff0c\u4f46\u662f\u4e0d\u5305\u62ec<code>line-height<\/code>\u5c5e\u6027\u3002<\/li>\n<li><code>white-space<\/code>\u5c5e\u6027\uff1b<\/li>\n<li><code>text-shadow<\/code>\u5c5e\u6027\uff08\u4ec5Chrome\u652f\u6301\uff09\uff0c\u5176\u4ed6text\u76f8\u5173\u5c5e\u6027\u5e76\u4e0d\u652f\u6301\uff1b<\/li>\n<li><code>letter-spacing<\/code>\u548c<code>word-spacing<\/code>\u5c5e\u6027\uff08\u4ec5Chrome\u652f\u6301\uff09\uff1b<\/li>\n<li><code>color<\/code>\u5c5e\u6027\uff1b<\/li>\n<li><code>text-combine-upright<\/code>\u3001<code>unicode-bidi<\/code>\u548c<code>direction<\/code>\u5c5e\u6027\uff0c\u8fd9\u51e0\u4e2a\u5c5e\u6027\u4e0e\u6587\u5b57\u6392\u7248\u65b9\u4f4d\u76f8\u5173\uff1b<\/li>\n<li><code>content<\/code>\u5c5e\u6027\uff0cSafari\u76ee\u524d\u4e0d\u652f\u6301<\/li>\n<li>\u6240\u6709\u52a8\u753b\u548c\u8fc7\u6e21\u76f8\u5173\u7684CSS\u5c5e\u6027\uff0c\u4e5f\u5c31\u662f<code>animation<\/code>\u548c<code>transition<\/code>\u5c5e\u6027\uff1b<\/li>\n<\/ul>\n<p>\u5176\u4e2d\uff0c\u652f\u6301<code>animation<\/code>\u548c<code>transition<\/code>\u5c5e\u6027\u7740\u5b9e\u8ba9\u6211\u610f\u5916\u4e86\u4e00\u756a\uff0c\u8fd9\u5728\u5b57\u7b26\u6027\u8d28\u7684\u4f2a\u5143\u7d20\u4e2d\u8fd8\u662f\u5f88\u5c11\u89c1\u7684\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c<code>::marker<\/code>\u4f2a\u5143\u7d20\u652f\u6301\u7684CSS\u5c5e\u6027\u91cc\u9762\u652f\u6301\u52a8\u753b\u7684CSS\u5c5e\u6027\u5e76\u4e0d\u591a\uff0c\u4e5f\u5c31\u662f<code>color<\/code>\u5c5e\u6027\u80fd\u7528\u7528\uff0c\u56e0\u6b64\uff0c\u6f5c\u529b\u4e00\u822c\u822c\uff0c\u5b8c\u5168\u6ca1\u6709<code>::before<\/code>\u548c<code>::after<\/code>\u8fd9\u4e24\u4e2a\u4f2a\u5143\u7d20\u652f\u6301\u52a8\u753b\u548c\u8fc7\u6e21\u6765\u5f97\u7ed9\u529b\u3002<\/p>\n<p>\u7136\u540eFirefox\u6d4f\u89c8\u5668\u867d\u7136\u5f88\u65e9\u5c31\u652f\u6301\u4e86<code>::marker<\/code>\u4f2a\u5143\u7d20\uff0c\u4f46\u662f<code>::marker<\/code>\u652f\u6301\u52a8\u753b\u662f80\u8fd9\u4e2a\u7248\u672c\u624d\u5f00\u59cb\u652f\u6301\u7684\uff0c\u521a\u652f\u6301\u6ca1\u591a\u4e45\uff0c\u8fd8\u5f88\u70ed\u4e4e\u3002<\/p>\n<p>\u4f7f\u7528\u793a\u610f\uff1a<\/p>\n<pre>.marker {\r\n  display: list-item;\r\n}\r\n.marker::marker {\r\n  transition: color .2s;\r\n  content: '\u25b6';\r\n}\r\n.marker:hover::marker {\r\n  color: deepskyblue;\r\n}<\/pre>\n<p>\u6548\u679c\u53c2\u89c1\u4e0b\u9762\u7684GIF\u5f55\u5c4f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/marker-transition.gif\" width=\"320\" height=\"39\" alt=\"\u6807\u8bb0\u5b57\u7b26\u989c\u8272\u8fc7\u6e21\u52a8\u753bgif\" class=\"alignnone size-medium\" \/><\/p>\n<p><span class=\"hidden\">\/\/zxx: \u5982\u679c\u4f60\u770b\u5230\u8fd9\u6bb5\u6587\u5b57\uff0c\u8bf4\u660e\u4f60\u73b0\u5728\u8bbf\u95ee\u662f\u4f53\u9a8c\u7cdf\u7cd5\u7684\u5783\u573e\u76d7\u7248\u7f51\u7ad9\uff0c\u4f60\u53ef\u4ee5\u8bbf\u95ee\u539f\u6587\u83b7\u5f97\u5f88\u597d\u7684\u4f53\u9a8c\uff1ahttps:\/\/www.zhangxinxu.com\/wordpress\/?p=9849\uff08\u4f5c\u8005\u5f20\u946b\u65ed\uff09<\/span><\/p>\n<h3>\u4e09\u3001::before\/::after\u4e2d\u4f7f\u7528::marker<\/h3>\n<p>\u6211\u5728<a href=\"https:\/\/drafts.csswg.org\/css-pseudo-4\/#marker-pseudo\" rel=\"noopener\" target=\"_blank\">CSS Pseudo-Elements Module Level 4\u89c4\u8303<\/a>\u4e2d\u627e\u5230\u8fd9\u4e48\u4e00\u53e5\u8bdd\uff1a<\/p>\n<blockquote><p>The ::before::marker or ::after::marker selectors are valid and can be used to represent the marker boxes of ::before or ::after pseudo-elements that happen to be list items. However ::marker::marker is invalid, and the computed value of display on ::marker loses its list-item aspect.<\/p><\/blockquote>\n<p>\u610f\u601d\u662f<code>::before::marker<\/code>\u548c<code>::after::marker<\/code>\u9009\u62e9\u5668\u90fd\u662f\u5408\u6cd5\u7684\uff0c\u53ea\u9700\u8981<code>::before<\/code>\u548c<code>::after<\/code>\u662f\u5217\u8868\u9879\uff0c\u4e5f\u5c31\u662f<code>display<\/code>\u8ba1\u7b97\u503c\u662f<code>list-item<\/code>\u3002<\/p>\n<p>\u6211\u52d2\u4e2a\u64e6\uff0c\u8fd9\u8981\u662f\u652f\u6301\u4e86\u53ef\u5c31\u725b\u903c\u5927\u4e86\uff0c<code>content<\/code>\u5d4c\u5957\u554a\uff0c\u53ef\u4ee5\u505a\u7684\u4e8b\u60c5\u90a3\u5c31\u591a\u4e86\u5440\uff0c\u76f8\u5f53\u4e8e\u4efb\u610f\u5143\u7d20\u7684\u524d\u540e\u53c8\u591a\u4e86\u4e00\u5c42\u4f2a\u5143\u7d20\uff0c\u7406\u8bba\u4e0a\uff0c\u4e00\u5c42\u6807\u7b7e\u91cc\u9762\u5448\u73b0\u7684\u6587\u5b57\u53ef\u4ee5\u67095\u79cd\u4e0d\u540c\u7684\u989c\u8272\uff0c\u4e8e\u662f\u6211\u706b\u901f\u6574\u4e86\u4e2ademo\u770b\u770b\u6548\u679c\u5982\u4f55\uff0c\u7a76\u7adf\u652f\u4e0d\u652f\u6301\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202102\/css-before-after-marker-demo.php\" rel=\"noopener\" target=\"_blank\">::before\/::after\u4e2d\u4f7f\u7528::marker\u4f2a\u5143\u7d20demo<\/a><\/p>\n<p>\u6d4b\u8bd5\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;div class=\"target\"&gt;\u4e00\u4e2a\u6807\u7b7e5\u79cd\u989c\u8272&lt;\/div&gt;<\/pre>\n<pre>.target::before {\r\n    content: '\u5de6\u8fb9\u7b26\u53f7\u989c\u8272\u662f\uff1f';\r\n    display: list-item;\r\n    list-style-position: inside;\r\n    color: deepskyblue;\r\n}\r\n.target::before::marker {\r\n    color: red;\r\n}\r\n.target::after {\r\n    content: '\u53f3\u8fb9\u7b26\u53f7\u989c\u8272\u662f\uff1f';\r\n    display: list-item;\r\n    list-style-position: inside;\r\n    color: olive;\r\n}\r\n.target::before::marker {\r\n    content: '\u6a59\u8272';\r\n    color: orange;\r\n    direction: rtl;\r\n}<\/pre>\n<p>\u7ed3\u679c\u9875\u9762\u5237\u65b0\u4e00\u770b\u2026\u2026\u5931\u671b\uff0c\u53ea\u67093\u79cd\u989c\u8272\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/2021-02-16_230558.png\" width=\"310\" height=\"163\" alt=\"\u53ea\u67093\u79cd\u989c\u8272\" class=\"alignnone size-medium\" \/><\/p>\n<p>DOM\u4e2d\u6709<code>::marker<\/code>\u5143\u7d20\u6807\u8bb0\uff0c\u4f46\u662f\u6ca1\u6709\u4efb\u4f55\u5339\u914d\uff0c\u8fde\u6d4f\u89c8\u5668\u9ed8\u8ba4\u7684\u6837\u5f0f\u90fd\u6ca1\u6709\u5339\u914d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/2021-02-16_230754.png\" width=\"417\" height=\"408\" alt=\"\u6ca1\u6709\u4efb\u4f55\u6837\u5f0f\u5339\u914d\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u8fd9\u59a5\u59a5\u7684\u6b3a\u9a97\u7eaf\u60c5\u5c11\u5e74\u7684\u611f\u60c5\u554a\uff01<\/p>\n<p>\u660e\u660e\u89c4\u8303\u8bf4\u652f\u6301\u7684\uff0c\u7ed3\u679c\u5c31\u50cf\u51cc\u66683\u70b9\u7684\u83dc\u5e02\u573a\u2014\u2014\u4ec0\u4e48\u4e5f\u6ca1\u6709\uff01\u800c\u4e14\u6ca1\u6709\u4e00\u4e2a\u6d4f\u89c8\u5668\u652f\u6301\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f630.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u60f3\u8d77\u4e86\u4e00\u53e5\u8bd7\uff0c\u201c\u738b\u5e08\u5317\u5b9a\u4e2d\u539f\u65e5\uff0c\u5bb6\u796d\u65e0\u5fd8\u544a\u4e43\u7fc1\u201d\uff0c\u5509\uff0c\u4ec0\u4e48\u65f6\u5019\u4e0a\u9762\u7684demo\u9875\u9762\u53d8\u62105\u79cd\u989c\u8272\u4e86\uff0c\u5927\u5bb6\u8bb0\u5f97\u77e5\u4f1a\u6211\u4e00\u58f0\uff0c\u6211\u6492\u4e2a\u82b1\u5e86\u795d\u4e00\u4e0b\u3002<\/p>\n<h3>\u56db\u3001\u517c\u5bb9\u6027<\/h3>\n<p>\u76ee\u524d\uff0c\u6240\u6709\u73b0\u4ee3\u6d4f\u89c8\u5668\u5747\u5df2\u7ecf\u652f\u6301\u4e86<code>::marker<\/code>\u4f2a\u5143\u7d20\uff08<a href=\"https:\/\/caniuse.com\/?search=%3A%3Amarker\" rel=\"noopener nofollow\" target=\"_blank\">\u5b9e\u65f6\u517c\u5bb9\u6027<\/a>\uff09\uff0cChrome\u6d4f\u89c8\u5668\u4e5f\u662f\u6700\u8fd1\u51e0\u4e2a\u6708\u624d\u652f\u6301\u7684\uff0c\u5f88\u65b0\u9c9c\u5f88\u70ed\u4e4e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/2021-02-16_231507.png\" width=\"644\" height=\"301\" alt=\"::marker\u4f2a\u5143\u7d20\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u7ec8\u4e8e\u6709\u529e\u6cd5\u53ef\u4ee5\u8ba9\u9879\u76ee\u5217\u8868\u7684\u7b26\u53f7\u7684\u989c\u8272\u548c\u6b63\u6587\u989c\u8272\u4e0d\u4e00\u6837\u54af\uff0c\u7528\u8d77\u6765\uff0c\u6e10\u8fdb\u589e\u5f3a\uff0c\u4e0d\u8981\u62c5\u5fc3\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/image.zhangxinxu.com\/image\/emtion\/emoji\/1f446.svg\" width=\"20\" height=\"20\" align=\"absmiddle\"><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u6b22\u8fce\u5206\u4eab\uff0c\u52ff\u5168\u6587\u8f6c\u8f7d\uff0c\u5982\u679c\u5b9e\u5728\u559c\u6b22\uff0c\u53ef\u6536\u85cf\uff0c\u6c38\u4e0d\u8fc7\u671f\uff0c\u4e14\u4f1a\u53ca\u65f6\u66f4\u65b0\u77e5\u8bc6\u70b9\u53ca\u4fee\u6b63\u9519\u8bef\uff0c\u9605\u8bfb\u4f53\u9a8c\u4e5f\u66f4\u597d\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=9849\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=9849<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202102\/marker-cover.png\" width=\"160\" height=\"102\" alt=\"\u6807\u8bb0\u5217\u8868\u9879\u76ee\u7b26\u53f7\" class=\"alignright size-medium\" loading=\"lazy\" \/><\/p>\n<p>::marker\u662fCSS\u4e2d\u65b0\u51fa\u7684\u4e00\u79cd\u4f2a\u5143\u7d20\uff0c\u7528\u6765\u5339\u914d\u5217\u8868\u9879\u4e2d\u7684marker box\uff0c\u53ef\u4ee5\u6539\u53d8\u9879\u76ee\u7b26\u53f7\u7684\u989c\u8272\u5b57\u4f53\u7b49\uff0c\u751a\u81f3\u6539\u53d8\u9879\u76ee\u7b26\u53f7\u5185\u5bb9\uff0c\u586b\u8865\u4e86CSS\u4ee5\u524d\u8fd9\u5757\u7684\u80fd\u529b\u7a7a\u767d\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":[319,366,1729,365,1619,823],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9849"}],"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=9849"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/9849\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=9849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=9849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=9849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}