{"id":11261,"date":"2024-07-15T00:04:05","date_gmt":"2024-07-14T16:04:05","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=11261"},"modified":"2024-07-15T00:05:50","modified_gmt":"2024-07-14T16:05:50","slug":"css-calc-keyword-infinity-pi-e","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2024\/07\/css-calc-keyword-infinity-pi-e\/","title":{"rendered":"\u4e86\u89e3infinity\u3001pi\u7b49CSS calc()\u8ba1\u7b97\u5173\u952e\u5b57"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=11261\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=11261<\/a><br \/>\n\u672c\u6587\u53ef\u5168\u6587\u8f6c\u8f7d\uff0c\u72ec\u7acb\u57df\u540d\u4e2a\u4eba\u7f51\u7ad9\u65e0\u9700\u6388\u6743\uff0c\u4f46\u9700\u8981\u4fdd\u7559\u539f\u4f5c\u8005\u3001\u51fa\u5904\u4ee5\u53ca\u6587\u4e2d\u94fe\u63a5\uff0c\u4efb\u4f55\u7f51\u7ad9\u5747\u53ef\u6458\u8981\u805a\u5408\uff0c\u5546\u7528\u8bf7\u8054\u7cfb\u6388\u6743\u3002<\/p>\n<p><script>window.wxShareImgUrl = 'https:\/\/www.zhangxinxu.com\/study\/image\/share\/202407-calc-infinity.png';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202407\/infinity-cover.png\" width=\"480\" height=\"302\" alt=\"\u5c01\u9762\u56fe-\u84b2\u516c\u82f1\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001calc()\u51fd\u6570\u652f\u6301\u7684\u65b0\u5173\u952e\u5b57<\/h3>\n<p>CSS\u5728\u4e0d\u65ad\u53d1\u5c55\uff0c\u9664\u4e86\u65b0\u652f\u6301\u4e86<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2023\/06\/css-sin-cos-tan-function\/\">\u82e5\u5e72\u6570\u5b66\u51fd\u6570<\/a>\u4e4b\u5916\uff0c\u8fd8\u652f\u6301\u4e86\u4e00\u4e9b\u6570\u5b66\u5173\u952e\u5b57\uff0c\u4e14\u8fd9\u4e9b\u5173\u952e\u5b57\u548cJavaScript\u4e2d\u7684\u5173\u952e\u5b57\u795e\u4f3c\u3002<\/p>\n<p>\u5305\u62ec\uff1a<\/p>\n<dl>\n<dt id=\"e\"><code>e<\/code><\/dt>\n<dd>\n<p>log\u5e38\u91cf\uff0c\u7ea6\u7b49\u4e8e\uff1a<code>2.7182818284590452354<\/code>.<\/p>\n<\/dd>\n<dt id=\"pi\"><code>pi<\/code><\/dt>\n<dd>\n<p>\u5706\u5468\u7387\uff0c\u7ea6\u7b49\u4e8e\uff1a<code>3.1415926535897932<\/code>.<\/p>\n<\/dd>\n<dt id=\"infinity\"><code>infinity<\/code> &amp; <code>-infinity<\/code><\/dt>\n<dd>\n<p>\u65e0\u7a77\u5927\u548c\u65e0\u7a77\u5c0f<\/p>\n<\/dd>\n<dt id=\"nan\"><code>NaN<\/code><\/dt>\n<dd>\n<p>\u8868\u793a\u975e\u6570\u503c\u3002<\/p>\n<\/dd>\n<\/dl>\n<p>\u5176\u4e2d\uff0c<code>e<\/code>\u548c<code>pi<\/code>\u6bd4\u8f83\u5bb9\u6613\u7406\u89e3\uff0c\u6211\u4eec\u53ef\u4ee5\u501f\u52a9\u8fd9\u4e9b\u5e38\u91cf\u548c\u7279\u6027\u6570\u5b66\u51fd\u6570<del datetime=\"2024-07-14T16:04:35+00:00\">\u5b9e\u73b0\u7f13\u52a8\u6216\u6b63\u4f59\u5f26\u51fd\u6570\u52a8\u753b\u6548\u679c<\/del>\uff08\u53ef\u4ee5\u662f\u53ef\u4ee5\uff0c\u4f46\u6bd4\u8f83\u7275\u5f3a\uff09\uff0c\u8fd9\u4e2a\u540e\u9762\u4f1a\u6709\u6848\u4f8b\u3002<\/p>\n<p>\u9700\u8981\u82b1\u4e9b\u65f6\u95f4\u4e86\u89e3\u7684\u662f<code>infinity<\/code>\u8fd9\u4e2a\u5173\u952e\u5b57\u3002<\/p>\n<h3>\u4e8c\u3001\u4e86\u89e3infinity\u5173\u952e\u5b57\u53ca\u5176\u5e94\u7528<\/h3>\n<p>\u5148\u770b\u4e00\u4e2a\u6848\u4f8b\uff0c\u5df2\u77e5\u6709\u5982\u4e0bHTML\u548cCSS\u4ee3\u7801\uff0c\u8bf7\u95ee\u5bf9\u8bdd\u6846\u5143\u7d20\u7684\u4e0a\u4e0b\u5806\u53e0\u987a\u5e8f\u4f9d\u6b21\u662f\u591a\u5c11\uff1f<\/p>\n<pre>&lt;dialog class=\"a\" open&gt;1&lt;\/dialog&gt;\r\n&lt;dialog class=\"b\" open&gt;2&lt;\/dialog&gt;\r\n&lt;dialog class=\"c\" open&gt;3&lt;\/dialog&gt;\r\n&lt;dialog class=\"d\" open&gt;4&lt;\/dialog&gt;<\/pre>\n<pre>.a {\r\n  z-index: 99999999;\r\n}\r\n.b {\r\n  z-index: calc(1 \/ 0);\r\n}\r\n.c {\r\n  z-index: calc(infinity + 1);\r\n}\r\n.d {\r\n  z-index: calc(infinity * 1);\r\n}<\/pre>\n<p>\u5927\u5bb6\u53ef\u4ee5\u601d\u8003\u4e0b\u3002<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n.<br \/>\n\u4e0b\u9762\u516c\u5e03\u7b54\u6848\uff0c\u4ece\u4e0b\u5f80\u4e0a\u7684\u5c42\u53e0\u987a\u5e8f\u4f9d\u6b21\u662f1\u30012\u30013\u30014\uff0c\u5c31\u662fDOM\u7684\u524d\u540e\u987a\u5e8f\u3002<\/p>\n<p>\u5728CSS\u4e2d\uff0cz-index\u5c5e\u6027\u6709\u4e2a\u6700\u5927\u4e0a\u7ebf\u7684\u8ba1\u7b97\u503c\u662f2147483647\uff0c\u73b0\u5728\u6709\u4e86infinity\uff0c\u8fd9\u4e2a\u503c\u5c31\u4e0d\u662f\u6700\u5927\u503c\u4e86\u3002<\/p>\n<p>\u7efc\u5408\u4e0a\u8ff0\u6848\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u5230\u4ee5\u4e0b\u4e00\u4e9b\u7ed3\u8bba\uff1a<\/p>\n<ol>\n<li>infinity\u7684\u5c42\u7ea7\u5927\u4e8e\u4efb\u4f55\u5177\u4f53\u6570\u503c\u7684\u5c42\u7ea7\u3002<\/li>\n<li>calc(1 \/ 0)\u7684\u8ba1\u7b97\u503c\u5c31\u662f\u65e0\u7a77\u5927<code>infinity<\/code><\/li>\n<li>infinity\u548c\u5176\u4ed6\u6570\u503c\u52a0\u51cf\u4e58\u9664\uff0c\u8fd8\u662finfinity<\/li>\n<li><code>infinity<\/code>\u53ea\u80fd\u5728<code>calc()<\/code>\u51fd\u6570\u4e2d\u4f7f\u7528\uff0c\u4e0d\u53ef\u5355\u72ec\u4f5c\u4e3a\u5173\u952e\u5b57\u3002<\/li>\n<\/ol>\n<h4>\u7406\u8bba\u5e94\u7528<\/h4>\n<p>\u7406\u8bba\u4e0a\uff0c<code>infinity<\/code>\u53ef\u4ee5\u7528\u5728\u4efb\u4f55\u9700\u8981\u5927\u503c\u7684\u573a\u666f\u4e0b\u3002<\/p>\n<p>\u4f8b\u5982\u5c4f\u5e55\u5916\u9690\u85cf\uff0c\u4e4b\u524d\u6211\u4eec\u7684CSS\u4ee3\u7801\u53ef\u80fd\u662f\uff1a<\/p>\n<pre>.element {\r\n    left: -9999px;\r\n}<\/pre>\n<p>\u5982\u4eca\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u6240\u793a\u7684\u4ee3\u7801\u4ee3\u66ff\uff1a<\/p>\n<pre>.element {\r\n    left: calc(-infinity * 1px);\r\n}<\/pre>\n<p>\u7c7b\u4f3c\u7684\u8fd8\u6709\u5706\u89d2\uff0c\u53ef\u4ee5\u8ba9\u4efb\u610f\u5c3a\u5bf8\u7684\u6309\u94ae\u7684\u5706\u89d2\u90fd\u662f\u9971\u6ee1\u7684\uff1a<\/p>\n<pre>.element {\r\n    border-radius: calc(infinity * 1px);\r\n}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202407\/button-drag-min.gif\" width=\"308\" height=\"144\" alt=\"\u5706\u89d2\u5927\u5c0f\u9971\u6ee1\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u7136\u800c\u7406\u8bba\u5f52\u7406\u8bba\uff0c\u5b9e\u9645\u4e0a\u5374\u4e0d\u5efa\u8bae\u4f7f\u7528<code>infinity<\/code>\u53bb\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6548\u679c\u3002<\/p>\n<p>\u4e00\u662f\u62fc\u5199\u9ebb\u70e6\u4ee3\u7801\u91cf\u5927\uff0c\u800c\u662f\u6839\u672c\u5c31\u6ca1\u6709\u5fc5\u8981\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5143\u7d20\u5c4f\u5e55\u5916\u9690\u85cf\uff0c\u76f4\u63a53\u4e2a\u7a97\u53e3\u5bbd\u5ea6\u5927\u5c0f\u8db3\u77e3\uff0c\u6ca1\u5fc5\u8981\u641e\u4e2a\u4ec0\u4e48\u65e0\u9650\u5c0f\uff1a<\/p>\n<pre>.element {\r\n    left: -300vw;\r\n}<\/pre>\n<p>\u5706\u89d2\u4e5f\u662f\u7c7b\u4f3c\uff0c\u6211\u5c31\u4e0d\u4fe1\u9875\u9762\u4e0a\u6709\u4ec0\u4e48\u6309\u94ae\u7684\u5706\u89d2\u5927\u5c0f\u6709\u5c4f\u5e55\u8fd9\u4e48\u5927\uff0c\u56e0\u6b64\uff0c\u4e0b\u9762\u8fd9\u4e2a\u5355\u4f4d\u503c\u8db3\u77e3\uff1a<\/p>\n<pre>.element {\r\n    border-radius: 99vw;\r\n}<\/pre>\n<p>\u50cf\u6211\u5e73\u65f6\u7528\u7684\u66f4\u591a\u7684\u662f9rem\uff0c\u8db3\u77e3\uff1a<\/p>\n<pre>.element {\r\n    border-radius: 9rem;\r\n}<\/pre>\n<p>\u53ea\u6709\u67d0\u4e9b\u7279\u6b8a\u7684\u8fb9\u754c\u8ba1\u7b97\u573a\u666f\uff0c\u6211\u89c9\u5f97\u624d\u9700\u8981<code>infinity<\/code>\u5173\u952e\u5b57\u51fa\u9a6c\u3002<\/p>\n<h4>\u5b9e\u9645\u5e94\u7528<\/h4>\n<p>\u573a\u666f\u5982\u4e0b\uff0c\u9879\u76ee\u5b8c\u6210\u8fdb\u5ea6\u6761\uff0c\u5982\u679c\u8d85\u8fc780%\uff0c\u5219\u53d8\u7eff\uff0c\u5426\u5219\u662f\u7ea2\u8272\u3002<\/p>\n<p>\u5176\u4e2d\uff0c80%\u8fd9\u4e2a\u8fb9\u754c\u53d8\u5316\u7684\u5173\u952e\u70b9\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528<code>infinity<\/code>\u5b9e\u73b0\u3002<\/p>\n<pre>&lt;div class=\"bar\" style=\"--percent: 40;\"&gt;&lt;\/div&gt; \r\n\r\n&lt;div class=\"bar\" style=\"--percent: 81;\"&gt;&lt;\/div&gt;<\/pre>\n<pre>.bar {\r\n    width: 240px;\r\n    height: 18px;\r\n    border: 1px solid;\r\n    color: hwb(min(calc((var(--percent) - 80) * infinity), 150) 0% 25%);\r\n}\r\n...<\/pre>\n<p>\u5f53&#8211;percent\u5927\u4e8e80\u7684\u65f6\u5019\uff0chwb()\u8272\u503c\u7684H\u5c31\u662f150\uff0c\u5982\u679c\u5c0f\u4e8e80\uff0c\u5219\u662f\u6781\u5c0f\u7684\u8d1f\u503c\uff0c\u4e5f\u5c31\u662f0\uff0c\u6b64\u65f6\u989c\u8272\u662f\u7ea2\u8272\uff0c\u5c31\u53ef\u4ee5\u5b9e\u73b0\u6211\u4eec\u7684\u9700\u6c42\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202407\/2024-07-13_002204.png\" width=\"388\" height=\"201\" alt=\"\u8fdb\u5ea6\u6761\u6548\u679c\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u773c\u89c1\u4e3a\u5b9e\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202407\/css-infinity-progress-bar-style-demo.php\" rel=\"noopener\" target=\"_blank\">CSS infinity\u8fb9\u754c\u72b6\u6001\u6539\u53d8\u8fdb\u5ea6\u6761\u6837\u5f0fdemo<\/a><\/p>\n<h3>\u4e09\u3001pi\u548ce\u7684\u5b9e\u9645\u5e94\u7528<\/h3>\n<p>\u601d\u6765\u60f3\u53bb\uff0c\u4e0d\u5c31\u662f\u4e24\u4e2a\u5e38\u6570\u561b\uff0c\u6709\u4e2a\u5565\u5b50\u9ad8\u5927\u4e0a\u7684\u5e94\u7528\u54e6\u3002<\/p>\n<p>\u6ca1\uff0ce\u5e38\u91cf\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u8870\u51cf\uff0c\u4f46CSS\u81ea\u5e26\u7684\u7f13\u52a8\u51fd\u6570ease\u7b49\u66f4\u597d\u7528\uff0cpi\u8868\u793a\u5706\u5468\u7387\uff0c\u55ef\u2026\u2026\u53ea\u6709\u4e00\u4e2a\u7279\u6b8a\u7684\u73af\u5f62\u6392\u7248\u53ef\u80fd\u4f1a\u51fa\u9762\u4e00\u4e0b\u4e0b\u5427\u3002<\/p>\n<p>\u4e0d\u8fc7\u4e3a\u4e86\u65b9\u4fbf\u5927\u5bb6\u5b66\u4e60\uff0c\u6211\u8fd8\u662f\u5f3a\u626d\u4e86\u4e2ademo\uff0c\u7528e\u548cpi\u5e38\u91cf\u5f04\u7684\u4ec5\u4f9b\u5b66\u4e60\u7684\u793a\u610f\u6848\u4f8b\u3002<\/p>\n<p>HTML\u5982\u4e0b\uff1a<\/p>\n<pre name=\"code\" class=\"html\">&lt;img id=\"e\" class=\"e\" src=\"1.jpg\" \/&gt;\r\n&lt;p&gt;&lt;button onClick=\"e.classList.add('active');\"&gt;\u70b9\u51fb\u56fe\u7247\u8fd0\u52a8&lt;\/button&gt;&lt;\/p&gt;\r\n\r\n&lt;img id=\"pi\" class=\"pi\" src=\"1.jpg\" \/&gt;\r\n&lt;p&gt;&lt;button onClick=\"pi.classList.add('active');\"&gt;\u70b9\u51fb\u56fe\u7247\u8fd0\u52a8&lt;\/button&gt;&lt;\/p&gt;<\/pre>\n<p>CSS\u5219\u662f\uff1a<\/p>\n<pre name=\"code\" class=\"css\">@property --seed {\r\n  syntax: \"&lt;integer&gt;\";\r\n  inherits: false;\r\n  initial-value: 0;\r\n}\r\n@keyframes seed {\r\n    from { --seed: 0; }    \r\n    to { --seed: 100; }    \r\n}\r\nimg.active {\r\n    animation: seed 1s linear both;\r\n}\r\n.e {\r\n    translate: calc(1px * pow(var(--seed) \/ 16, e)) 0;\r\n}\r\n.pi {\r\n    rotate: calc(4 * atan(calc(pi * var(--seed) \/ 100)));\r\n}<\/pre>\n<p>\u5404\u79cd\u8bed\u6cd5\u548c\u82b1\u91cc\u82b1\u54e8\u7684CSS\u6570\u5b66\u51fd\u6570\u8ba1\u7b97\u5927\u5bb6\u7565\uff0c\u53ea\u8981\u77e5\u9053\uff0c\u70b9\u51fb\u6309\u94ae\uff0c\u5c31\u6709\u52a8\u753b\u6548\u679c\u5c31\u597d\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202407\/2024-07-14_003533.png\" width=\"533\" height=\"613\" alt=\"\u52a8\u753b\u4e2d\u622a\u56fe\u793a\u610f\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u82e5\u60f3\u76f4\u89c2\u4f53\u9a8c\uff0c\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202407\/css-e-pi-animation-demo.php\" rel=\"noopener\" target=\"_blank\">CSS e\u548cpi\u5e38\u91cf\u4e0e\u52a8\u753b\u6548\u679cdemo<\/a><\/p>\n<h3>\u56db\u3001\u7ed3\u8bed\u788e\u788e\u5ff5<\/h3>\n<p>\u4eff\u4f5b\u56de\u5230\u4e86\u4ee5\u524d\uff0c\u4e00\u4e2a\u5c0f\u5c0f\u7684\u70b9\u4e5f\u64a4\u51fa\u90a3\u4e48\u591a\u4e1c\u897f\u3002<\/p>\n<p>\u597d\u5427\uff0c\u5f00\u59cb\u8fdb\u5165\u5927\u5bb6\u90fd\u559c\u6b22\u770b\u7684\u672c\u5468\u788e\u788e\u5ff5\u73af\u8282\u3002<\/p>\n<p>\u5c0f\u670b\u53cb\u7ec8\u4e8e\u5f00\u59cb\u5b66\u6e38\u6cf3\u4e86\uff0c\u4e24\u4e2a\u4e00\u8d77\u5b66\uff0c\u627e\u4e86\u4e2a\u5c0f\u533a\u5185\u90e8\u7684\u6e38\u6cf3\u6c60\uff0c\u6bd4\u5546\u4e1a\u533a\u7684\u6cf3\u6c60\u8981\u4fbf\u5b9c\u4e0d\u5c11\uff0c\u6027\u4ef7\u6bd4\u8fd8\u4e0d\u9519\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202407\/2024-7-14_004100.jpeg\" width=\"207\" height=\"276\" alt=\"\u5b66\u6e38\u6cf3\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u5c0f\u533a\u91cc\u9762\u7684\u8f66\u8d8a\u6765\u8d8a\u591a\u4e86\uff0c\u560e\u5431\u89d2\u843d\u90fd\u585e\u6ee1\u4e86\u8f66\u3002<\/p>\n<p>\u8f66\u5b50\u91cc\u9762\u7684\u9493\u7bb1\u7ec8\u4e8e\u6e05\u51fa\u6765\u4e86\uff0c\u73b0\u5728\u90fd\u662f\u7528\u9493\u6905\u4e86\uff0c\u5bb6\u91cc\u9886\u5bfc\u4e0d\u8ba9\u5e26\u5230\u5bb6\u91cc\u5360\u5730\u65b9\uff0c\u5c31\u653e\u5728\u4e86\u53e6\u5916\u4e00\u8f86\u4e70\u83dc\u8f66\u91cc\u9762\u3002<\/p>\n<p>\u5468\u672b\u4e24\u5929\u90fd\u662f38\u300139\u5ea6\u7684\u9ad8\u6e29\uff0c\u8fd8\u662f\u9493\u4e86\u4e24\u5929\u7684\u9c7c\uff0c\u6211\u4e0d\u6015\u70ed\uff0c\u6015\u51b7\uff0c\u590f\u5929\u529e\u516c\u90fd\u8981\u5916\u5957\u62ab\u8eab\uff0c\u4e00\u662f\u56e0\u4e3a\u4f53\u8102\u7387\u4f4e\uff0c\u6563\u70ed\u5feb\uff0c\u4e8c\u662f\u4ece\u5c0f\u6237\u5916\u66b4\u6652\u4e60\u60ef\u4e86\u3002<\/p>\n<p>\u5468\u516d\u5927\u6df7\u517b\uff0c\u9493\u4e86\u8fd140\u65a4\uff0c\u5468\u65e5\u9493\u9ca4\u9c7c51\u65a4\u9c7c\uff0c\u53d1\u6325\u4e00\u822c\uff0c\u5931\u8bef\u8f83\u591a\uff0c\u9700\u8981\u597d\u597d\u603b\u7ed3\u4e0b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202407\/2024-7-14_004241.jpeg\" width=\"173\" height=\"307\" alt=\"\u6e14\u83b7\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u672c\u5468CSS\u4e16\u754c\u4e09\u90e8\u66f2\u7cbe\u8bb2\u89c6\u9891\u5230\u4e86\u7b2c9\u96c6 <a href=\"https:\/\/www.bilibili.com\/video\/BV1cr421M7Ke\/?spm_id_from=333.999.0.0\" rel=\"noopener\" target=\"_blank\">\u529f\u52cb\u5353\u8d8a\u7684border\u5c5e\u6027<\/a> <\/p>\n<p>\u5bf9\u4e86\uff0c\u65b0\u4e66\u300aHTML\u5e76\u4e0d\u7b80\u5355\u300b\uff08\u539f\u540d\u300a\u4f60\u5e76\u4e0d\u7cbe\u901aHTML\u300b\uff09\u672c\u5468\u521a\u521a\u4e0a\u67b6\uff0c\u5927\u5bb6\u53ef\u4ee5\u5173\u6ce8\u4e0b\uff0c\u7136\u540e\u7b7e\u540d\u7248\u76ee\u524d5\u6298\uff0c<a href=\"https:\/\/item.jd.com\/10109023632599.html\" rel=\"noopener\" target=\"_blank\">\u4eac\u4e1c\u535a\u6587\u89c6\u70b9\u72ec\u5bb6\u51fa\u552e<\/a>\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202407\/2024-7-14_004327.png\" width=\"241\" height=\"241\" alt=\"\u4e66\u5c01\" 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=11261\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=11261<\/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\/202407\/infinity-cover.png\" width=\"160\" height=\"101\" alt=\"\u5c01\u9762\u56fe-\u84b2\u516c\u82f1\" class=\"alignright size-medium\" loading=\"lazy\" \/> <\/p>\n<p>CSS calc()\u8ba1\u7b97\u51fd\u6570\u53c8\u65b0\u589e\u4e86infinity\uff0cNaN\uff0cpi\u7b49\u5173\u952e\u5b57\uff0c\u90fd\u6765\u4e86\u89e3\u4e0b\u662f\u5e72\u561b\u7528\u7684\u5427\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":[1926,531,339,971,1900,1986,272,424],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/11261"}],"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=11261"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/11261\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=11261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=11261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=11261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}