{"id":12453,"date":"2026-10-26T15:09:37","date_gmt":"2026-10-26T07:09:37","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=12453"},"modified":"2026-10-26T15:09:37","modified_gmt":"2026-10-26T07:09:37","slug":"css-supports-named-feature","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2026\/10\/css-supports-named-feature\/","title":{"rendered":"\u7b97\u4e86\uff0c\u8fd8\u662f\u8bb2\u4e0bnamed-feature() @supports\u89c4\u5219\u68c0\u6d4b\u5427"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=12450\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=12450<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u4f46\u9700\u8981\u4fdd\u7559\u539f\u4f5c\u8005\u3001\u51fa\u5904\u4ee5\u53ca\u6587\u4e2d\u94fe\u63a5\uff0cAI\u6293\u53d6\u4fdd\u7559\u539f\u6587\u5730\u5740\uff0c\u4efb\u4f55\u7f51\u7ad9\u5747\u53ef\u6458\u8981\u805a\u5408\uff0c\u5546\u7528\u8bf7\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<h3>\u4e00\u3001\u4e00\u6b65\u5230\u4f4d<\/h3>\n<p>\u4eca\u5929\u4ecb\u7ecd\u4e00\u4e2a\u7279\u6b8a\u7684<code>@supports<\/code>\u68c0\u6d4b\u51fd\u6570\uff0c\u90a3\u5c31\u662f<code>named-feature()<\/code>\uff0c\u76ee\u524d\u5c31\u4e0b\u9762\u4e24\u4e2a\u7ecf\u5178\u7528\u6cd5\uff1a<\/p>\n<pre>\/* \u68c0\u6d4b\uff1a\u951a\u70b9\u5b9a\u4f4d\u662f\u5426\u611f\u77e5 transform\uff08transform\u540e\u951a\u70b9\u4f4d\u7f6e\u8ddf\u7740\u53d8\uff09 *\/\r\n@supports named-feature(anchor-position-follows-transforms) {\r\n  \/* \u652f\u6301\u8be5\u884c\u4e3a\u65f6\uff0c\u542f\u7528\u9ad8\u7ea7\u951a\u70b9\u5e03\u5c40 *\/\r\n  .tooltip {\r\n    position: anchor(--btn);\r\n  }\r\n}\r\n\r\n\/* \u68c0\u6d4b\u5355\u8f74\u6eda\u52a8\u5bb9\u5668\u80fd\u529b *\/\r\n@supports named-feature(single-axis-scroll-container) {\r\n  .scroll-x {\r\n    overflow-x: auto;\r\n    overflow-y: clip;\r\n  }\r\n}<\/pre>\n<p>\u6709\u522b\u4e8e\u4e4b\u524d\u7684<code>(property: value)<\/code>\u5c5e\u6027\u68c0\u6d4b\u3001<code>selector(:has())<\/code>\u9009\u62e9\u5668\u68c0\u6d4b\u3001<code>at-rule(@container)<\/code> AT\u89c4\u5219\u68c0\u6d4b\u3002<\/p>\n<p>\u8fd9\u91cc\u7684<code>named-feature()<\/code>\u68c0\u6d4b\u7684\u51fd\u6570\u53c2\u6570\u662fCSS\u89c4\u8303\u91cc\u663e\u5f0f\u767b\u8bb0\u7684\u7279\u6b8a\u540d\u5b57\u3002<\/p>\n<h3>\u4e8c\u3001\u4e3a\u4f55\u9700\u8981\uff1f<\/h3>\n<p>\u5148\u8bf4<code>anchor-position-follows-transforms<\/code>\u3002<\/p>\n<p>\u951a\u70b9\u5b9a\u4f4d <code>anchor()<\/code> \u6709\u4e00\u4e2a\u5927\u5751\uff0c\u90a3\u5c31\u662f\u90e8\u5206\u65e7\u7248\u5b9e\u73b0\uff0c\u5143\u7d20\u505a <code>transform<\/code> \u4e4b\u540e\uff0c\u951a\u70b9\u662f\u5750\u6807\u4e0d\u4f1a\u8ddf\u7740\u66f4\u65b0\u7684\u3002<\/p>\n<p>\u951a\u70b9\u5b9a\u4f4d\u662f\u975e\u5e38\u5f3a\u608d\u7684CSS\u7279\u6027\uff0c\u5f88\u597d\u7528\uff0c\u597d\u7528\u7684\u4e0d\u5f97\u4e86\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u8bbf\u95ee\u6211\u4e4b\u524d\u7684\u6587\u7ae0\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2024\/06\/css-anchor-positioning-api\/\">\u5168\u65b0\u7684CSS Anchor Positioning\u951a\u70b9\u5b9a\u4f4dAPI<\/a><\/p>\n<p>\u5982\u679c\u4f7f\u7528\u4f20\u7edf\u8bed\u6cd5\u68c0\u6d4b\uff0c\u6bd4\u65b9\u8bf4<code>@supports (position: anchor())<\/code>\uff0c\u7ed3\u679c\u53ea\u80fd\u68c0\u6d4b\u6d4f\u89c8\u5668\u8ba4\u8bc6 <code>anchor<\/code> \u8bed\u6cd5\u4e0e\u5426\uff0c\u5e76\u4e0d\u80fd\u68c0\u6d4b<code>transform<\/code>\u5b9a\u4f4dbug\u6d4f\u89c8\u5668\u662f\u5426\u4fee\u590d\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u5c31\u5fc5\u987b\u7528 <code>named-feature(anchor-position-follows-transforms)<\/code> \u5224\u65ad\u884c\u4e3a\u662f\u5426\u7b26\u5408\u9884\u671f\uff0c\u4ee5\u6b64\u533a\u5206\u4e24\u5957\u5b9e\u73b0\u903b\u8f91\uff0c\u907f\u514d UI \u9519\u4f4d\u3002<\/p>\n<h4>\u90a3single-axis-scroll-container\u5462\uff1f<\/h4>\n<p>\u8bf4\u8d77\u5355\u8f74\u6eda\u52a8\uff0c\u5c31\u4e0d\u5f97\u4e0d\u63d0\u6211\u4e0a\u4e2a\u6708\u5199\u7684\u8fd9\u7bc7\u6587\u7ae0\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2026\/09\/scroll-axis-lock-none\/\">\u4e00\u4e2a\u89c6\u9891\u5f7b\u5e95\u770b\u61c2CSS scroll-axis-lock none\u7684\u4f5c\u7528<\/a><\/p>\n<p>\u867d\u7136\u90fd\u662f\u8f74\u6eda\u52a8\u76f8\u5173\u7684\u7279\u6027\uff0c\u4f46\u8fd9\u91cc\u7684\u68c0\u6d4b\u80cc\u666f\u548c\u4f5c\u7528\u4e0e\u4e4b\u8fd8\u6709\u6240\u4e0d\u540c\uff0c\u8fd9\u4e2a\u503c\u5f97\u5c55\u5f00\u8bf4\u8bf4\u3002<\/p>\n<h3>\u4e09\u3001\u5355\u8f74\u6ea2\u51fa\u7684\u95ee\u9898<\/h3>\n<p>\u6bd4\u65b9\u8bf4\u8bbe\u7f6e\u4e00\u4e2a\u8868\u683c\u53ef\u4ee5\u6c34\u5e73\u548c\u5782\u76f4\u6eda\u52a8\uff0c\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;div class=\"table-wrapper\" style=\"overflow-x: auto;\"&gt;\r\n  &lt;table&gt;\r\n    \u2026\r\n  &lt;\/table&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\u7136\u540e\u5e0c\u671b\u8868\u5934\u548c\u7b2c\u4e00\u5217\u7c98\u6027\u5b9a\u4f4d\uff1a<\/p>\n<pre>.table-wrapper thead {\r\n  position: sticky;\r\n  top: 0;\r\n}\r\n\r\n\/* \u7b2c\u4e00\u5217\u4e5f\u7c98\u6027\u5b9a\u4f4d*\/\r\n.table-wrapper td:first-child {\r\n  position: sticky;\r\n  left: 0;\r\n}<\/pre>\n<p>\u7ed3\u679c\u600e\u4e48\u7740\uff0c\u6c34\u5e73\u6eda\u52a8\u662f\u6709\u7c98\u6027\u5b9a\u4f4d\u6548\u679c\u7684\uff0c\u4f46\u662f\u5782\u76f4\u6eda\u52a8\u5c31\u6ca1\u6709\u3002<\/p>\n<p>\u4e3a\u4f55\uff1f<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u201c\u6b21\u8f74\u65e0\u6cd5\u88ab\u5f7b\u5e95\u88c1\u526a\u201d\u5386\u53f2\u9057\u7559\u95ee\u9898\u3002<\/p>\n<p>\u957f\u671f\u4ee5\u6765\uff0cCSS overflow \u7684\u7ec4\u5408\u5b58\u5728\u9650\u5236\u3002<\/p>\n<p>\u5982\u679c\u4f60\u8bbe\u7f6e\u4e86 <code>overflow-x: auto<\/code>\uff0c\u54ea\u6015\u5c06 <code>overflow-y<\/code> \u663e\u5f0f\u8bbe\u4e3a <code>clip<\/code> \u6216 <code>hidden<\/code>\uff0c\u6d4f\u89c8\u5668\u5728\u5e95\u5c42\u8ba1\u7b97\u6eda\u52a8\u4e0a\u4e0b\u6587\u65f6\uff0c\u4ecd\u7136\u4f1a\u5c06\u8be5\u5bb9\u5668\u89c6\u4e3a\u4e24\u4e2a\u8f74\u5411\u90fd\u80fd\u6eda\u52a8\u7684\u5bb9\u5668\uff08\u6216\u8005\u8bf4\uff0c\u8ba1\u7b97\u903b\u8f91\u4ecd\u4f1a\u5c06\u5176\u89c6\u4e3a <code>overflow-y<\/code> \u4ea7\u751f\u4e86\u6eda\u52a8\u8fb9\u754c\uff09\u3002<\/p>\n<p>\u63d2\u64ad\u4e00\u4e0b\uff0c\u5982\u679c\u4e0d\u77e5\u9053<code>overflow:clip<\/code>\u7684\u4f5c\u7528\uff0c\u53ef\u4ee5\u770b\u6211\u5f88\u591a\u5e74\u524d\u5199\u7684\u8fd9\u7bc7\u6587\u7ae0\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2022\/02\/css-overflow-clip-margin\/\">CSS overflow-clip-margin\u5c5e\u6027\u7b80\u4ecb<\/a><\/p>\n<p>\u4e8e\u662f\u4e4e\uff0c\u5927\u8868\u683c\u7684\u7c98\u6027\u5b9a\u4f4d\u5c31\u6210\u4e86\u53d7\u5bb3\u8005\u3002<\/p>\n<p>\u6d4f\u89c8\u5668\u4f1a\u8bef\u8ba4\u4e3a\u8be5\u5916\u5c42\u5bb9\u5668\u5728 Y \u8f74\u4e5f\u662f\u6eda\u52a8\u5bb9\u5668\uff0c\u4ece\u800c\u5bfc\u81f4\u8868\u5934\u88ab\u56f0\u5728\u5916\u5c42\u5bb9\u5668\u4e2d\uff0c\u65e0\u6cd5\u8ddf\u968f\u9875\u9762\u5782\u76f4\u6eda\u52a8\u6761\u5b9e\u73b0\u7c98\u6027\u56fa\u5b9a\uff08\u8fd9\u53e5\u8bdd\u4e0d\u7406\u89e3\u4e5f\u6ca1\u5173\u7cfb\uff0cAI\u65f6\u4ee3\u4e86\uff0c\u7ec6\u8282\u539f\u7406\u4e0d\u91cd\u8981\u4e86\uff09\u3002<\/p>\n<p>\u6548\u679c\u89c1\u4e0b\u9762\u5f55\u5c4f\u793a\u610f\uff08\u4e0d\u52a8\u70b9\u51fb\u64ad\u653e\uff09\uff0c\u5de6\u4fa7\u662f\u6709\u95ee\u9898\u7684\uff0c\u53f3\u4fa7\u662f\u76ee\u6807\u6548\u679c\uff0c\u5de6\u4fa7\u53ef\u4ee5\u770b\u5230\u672c\u8be5\u7c98\u6027\u5b9a\u4f4d\u7684\u8868\u683c\u5934\u76f4\u63a5\u88ab\u6eda\u8d70\u4e86\u3002<\/p>\n<p><video width=\"720\" height=\"265\" controls preload=\"metadata\" loop webkit-playsinline=\"true\" playsinline=\"true\" x5-video-player-type=\"h5\" x5-video-orientation=\"portraint\" x5-video-player-fullscreen=\"true\" src=\"\/\/image.zhangxinxu.com\/video\/blog\/202610\/scroll-sticky.mp4\"><\/video><\/p>\n<p><em>\u505c\u987f\u4e86\u7247\u523b\u2026\u2026<\/em><\/p>\n<p>\u7b97\u4e86\uff0c\u8fd8\u662f\u6709\u4e0d\u5c11\u597d\u5b66\u7684\u5c0f\u4f19\u4f34\u7684\uff0c\u4e0a\u9762\u8fd9\u53e5\u8bdd\u518d\u901a\u4fd7\u89e3\u91ca\u4e0b\u5427\u3002<\/p>\n<p>\u5c31\u662f\u6211\u7279\u4e48\u7684\u53ea\u8bbe\u7f6e\u4e86\u6c34\u5e73\u6eda\u52a8\uff0c\u5782\u76f4\u65b9\u5411\u6211\u538b\u6839\u6ca1\u6709\u4efb\u4f55\u6eda\u52a8\uff0c\u4f60\u4e0d\u80fd\u50bb\u4e4e\u4e4e\u7684\u770b\u5230\u6211\u662f\u4e2a\u6eda\u52a8\u5bb9\u5668\uff0c\u5c31\u4e0d\u8ba9\u6211\u5782\u76f4\u65b9\u5411\u7684\u8868\u5934\u65e0\u6cd5\u7c98\u6027\u5b9a\u4f4d\u5427\uff01<\/p>\n<p>PS\uff1a\u7c98\u6027\u5b9a\u4f4d\u7684\u542f\u52a8\u70b9\u8ba1\u7b97\u662f\u6839\u636e\u7b2c\u4e00\u4e2a\u6eda\u52a8\u5bb9\u5668\u6765\u7684\uff0c\u8be6\u89c1\u6b64\u6587\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2020\/03\/position-sticky-rules\/\">\u6df1\u5165\u7406\u89e3position sticky\u7c98\u6027\u5b9a\u4f4d\u7684\u8ba1\u7b97\u89c4\u5219<\/a><\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8be5\u95ee\u9898\uff0cCSS \u89c4\u8303\u8fdb\u884c\u4e86\u4fee\u8ba2\uff0c\u5141\u8bb8 overflow-x: auto \u4e0e overflow-y: clip\uff08\u6216\u901a\u8fc7\u7b80\u5199 overflow: auto clip\uff09\u914d\u5bf9\u65f6\uff0c\u5bb9\u5668\u4ec5\u5145\u5f53\u5355\u8f74\uff08X\u8f74\uff09\u6eda\u52a8\u5bb9\u5668\u3002<\/p>\n<p>\u6b64\u65f6\uff0cY \u8f74\u7684 position: sticky \u5c31\u53ef\u4ee5\u7ed5\u8fc7\u8be5\u5bb9\u5668\uff0c\u6b63\u786e\u5730\u53bb\u8ddf\u8e2a\u6587\u6863\uff08\u9875\u9762\uff09\u7684\u5782\u76f4\u6eda\u52a8\u6761\u3002<\/p>\n<p>\u6839\u636e\u6211\u4ecechrome\u5f00\u53d1\u8005<a href=\"https:\/\/developer.chrome.com\/blog\/single-axis-scroll-containers-ready-for-testing\" rel=\"noopener\" target=\"_blank\">\u5b98\u65b9\u9875\u9762<\/a>\u770b\u5230\u7684\u6570\u636e\uff0c\u8c8c\u4f3c\u662fChrome 154\u5f00\u59cb\u652f\u6301\u7684\u3002<\/p>\n<p>\u800c\u4e3a\u4e86\u68c0\u6d4b\u6d4f\u89c8\u5668\u662f\u5426\u5f00\u59cb\u4e86\u5355\u8f74\u6eda\u52a8\u7684\u652f\u6301\uff0c\u5c31\u9700\u8981\u7528\u5230\u8fd9\u91cc\u7684<code>named-feature(single-axis-scroll-container)<\/code>\u68c0\u6d4b\u3002<\/p>\n<p><strong>\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u76f4\u63a5\u7528 @supports (overflow: auto clip)\uff1f<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u4ec5\u7528 <code>@supports (overflow: auto clip)<\/code>\uff0c\u6d4f\u89c8\u5668\u53ea\u4f1a\u68c0\u67e5\u81ea\u5df1\u80fd\u4e0d\u80fd\u89e3\u6790\u8fd9\u4e2a\u8bed\u6cd5\u3002<\/li>\n<li>\u5f88\u591a\u65e7\u7248\u672c\u6d4f\u89c8\u5668\u867d\u7136\u80fd\u89e3\u6790\u8fd9\u4e2a\u8bed\u6cd5\uff0c\u4f46\u5176\u5e95\u5c42\u7684\u6eda\u52a8\u4e0a\u4e0b\u6587\u8ba1\u7b97\u673a\u5236\u4ecd\u7136\u662f\u65e7\u7684\uff0c\u5e76\u4e0d\u4f1a\u6b63\u786e\u5904\u7406\u4fee\u8ba2\u540e\u7684\u5355\u8f74\u6eda\u52a8\u903b\u8f91\u3002<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u8fd9\u91cc\u624d\u9700\u8981<code>@supports named-feature(single-axis-scroll-container)<\/code>\u68c0\u6d4b\u6d4f\u89c8\u5668\u662f\u5426\u5df2\u7ecf\u652f\u6301\u4e86<code>overflow:clip<\/code>\u4e0e\u6d4f\u89c8\u5668\u5355\u8f74\u6eda\u52a8\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u652f\u6301\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528JS\u6253\u4e2a\u8865\u4e01\uff0c\u6216\u4f7f\u7528\u5176\u4ed6\u7b56\u7565\u4fee\u590d\u3002<\/p>\n<h4>\u6f14\u793a\u9875\u9762<\/h4>\n<p>\u5bf9\u4e86\uff0c\u6f14\u793a\u9875\u9762\u5dee\u70b9\u5fd8\u8bb0\u4e86\uff0c\u5982\u679c\u4f60\u7684\u6d4f\u89c8\u5668Chrome\u7248\u672c154\u53ca\u5176\u4ee5\u4e0a\uff0c\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202610\/css-single-axis-scroll-container-demo.php\" rel=\"noopener\" target=\"_blank\">CSS\u5355\u8f74\u6eda\u52a8\u5bb9\u5668\u7684\u602a\u5f02\u884c\u4e3a\u4ee5\u53ca\u4fee\u590ddemo<\/a><\/p>\n<hr>\n<h3>\u56db\u3001\u7ed3\u8bed\u788e\u788e\u5ff5<\/h3>\n<p><code>named-feature()<\/code>\u7279\u5f81\u68c0\u6d4b\u5176\u5b9e\u6ca1\u4ec0\u4e48\u597d\u8bb2\u7684\uff0c\u56e0\u4e3a\u592a\u5c0f\u4f17\u4e86\uff0c\u6211\u4f30\u8ba1\u5168\u4e2d\u56fd\uff0c99.9%\u7684\u524d\u7aef\u90fd\u6ca1\u6709\u673a\u4f1a\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u4f7f\u7528\u6b64\u7279\u6027\u3002<\/p>\n<p>\u90a3\u4e3a\u4ec0\u4e48\u8fd8\u4e13\u95e8\u5199\u4e00\u7bc7\u6587\u7ae0\u5462\uff1f<\/p>\n<p>\u4e3b\u8981\u662f\u8fd9\u4e24\u4e2a\u7279\u5f81\u68c0\u6d4b\u80cc\u540e\u7684\u6545\u4e8b\u5f88\u6709\u610f\u601d\uff0c\u503c\u5f97\u5ff5\u53e8\u3002<\/p>\n<p>\u4e00\u822c<code>named-feature()<\/code>\u7279\u5f81\u68c0\u6d4b\u90fd\u662f\u68c0\u6d4b\u6d4f\u89c8\u5668\u4e4b\u524d\u6709\u67d0\u67d0\u6e32\u67d3\u95ee\u9898\uff0c\u5728\u4e4b\u540e\u7684\u7248\u672c\u4e2d\u4fee\u6539\u4e86\u7b56\u7565\uff0c\u6216\u8005\u4fee\u590d\u4e86bug\uff0c\u7136\u540e\u9488\u5bf9\u8fd9\u4e2a\u73b0\u8c61\uff0c\u4e13\u95e8\u5f04\u4e2a\u767d\u540d\u5355\u673a\u5236\u4e00\u4e2a\u7684\u7279\u6b8a\u540d\u79f0\u3002<\/p>\n<p>\u65b9\u4fbf\u5f00\u53d1\u8005\u66f4\u597d\u5730\u5bf9\u65b0\u8001\u7279\u6027\u505a\u517c\u5bb9\u3002<\/p>\n<p>\u5f88\u597d\u7684\u8bbe\u8ba1\u60f3\u6cd5\u3002<\/p>\n<p>\u4f46\u662f\u592a\u5c0f\u4f17\uff0cAI\u65f6\u4ee3\u7684\u524d\u7aef\u5f00\u53d1\u8005\u666e\u904d\u6ca1\u4ec0\u4e48\u5b66\u4e60\u70ed\u60c5\uff0c\u600e\u4e48\u53ef\u80fd\u5b66\u8fd9\u79cd\u4e1c\u897f\uff0c\u72d7\u90fd\u4e0d\u5b66\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u770b\u4e0b\u6b64\u7279\u6027\u7684\u517c\u5bb9\u6027\uff0c\u770b\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202610\/2026-10-26_102728.png\" width=\"649\" height=\"272\" alt=\"named-feature()\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u54c7\uff0c\u597d\u65b0\u7684\u7279\u6027\u554a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202610\/star-eye.webp\" width=\"192\" height=\"108\" alt=\"\u661f\u661f\u773c\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u5f97\uff0c\u66f4\u662f\u6ca1\u4ec0\u4e48\u5b66\u4e60\u4ef7\u503c\u4e86\u3002<\/p>\n<p>\ud83d\ude2e\u200d\ud83d\udca8\ud83d\ude2e\u200d\ud83d\udca8\ud83d\ude2e\u200d\ud83d\udca8<\/p>\n<p>\u597d\uff0c\u5c31\u8bf4\u8fd9\u591a\uff0c\u6211\u4eec\u4e0b\u5468\u518d\u89c1\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202610\/2026-10-26_104059.webp\" width=\"137\" height=\"101\" alt=\"\u98de\u543b\u518d\u89c1\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u4f1a\u7ecf\u5e38\u66f4\u65b0\u77e5\u8bc6\u70b9\u4ee5\u53ca\u4fee\u6b63\u4e00\u4e9b\u9519\u8bef\uff0c\u56e0\u6b64\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u539f\u51fa\u5904\uff0c\u65b9\u4fbf\u6eaf\u6e90\uff0c\u907f\u514d\u9648\u65e7\u9519\u8bef\u77e5\u8bc6\u7684\u8bef\u5bfc\uff0c\u540c\u65f6\u6709\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=12450\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=12450<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202610\/2026-10-26_150640.webp\" width=\"160\" height=\"99\" alt=\"named-feature()\u68c0\u6d4b\u5c01\u9762\u56fe\" class=\"alignright size-medium\" \/><\/p>\n<p>named-feature() @supports\u89c4\u5219\u68c0\u6d4b\u672c\u8eab\u6ca1\u4ec0\u4e48\u597d\u591a\u7684\uff0c\u5c31\u662fCSS\u89c4\u8303\u91cc\u663e\u5f0f\u767b\u8bb0\u7684\u7279\u6b8a\u7279\u5f81\u53d8\u5316\u68c0\u6d4b\uff0c\u4f46\u662f\u5176\u652f\u6301\u7684\u7279\u6027\u80cc\u540e\u7684\u6545\u4e8b\u5374\u662f\u503c\u5f97\u597d\u597d\u8bf4\u9053\u8bf4\u9053\u7684\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":[1012,2178,1649,1821,2073,1558,1384,287],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/12453"}],"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=12453"}],"version-history":[{"count":7,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/12453\/revisions"}],"predecessor-version":[{"id":12492,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/12453\/revisions\/12492"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=12453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=12453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=12453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}