{"id":10901,"date":"2023-06-30T00:23:42","date_gmt":"2023-06-29T16:23:42","guid":{"rendered":"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10901"},"modified":"2023-06-30T00:23:42","modified_gmt":"2023-06-29T16:23:42","slug":"css-sin-cos-tan-function","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2023\/06\/css-sin-cos-tan-function\/","title":{"rendered":"CSS sin()\/cos()\u7b49\u6570\u5b66\u4e09\u89d2\u51fd\u6570\u7b80\u4ecb\u4e0e\u5e94\u7528"},"content":{"rendered":"<p>by <a href=\"https:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/?p=10901\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10901<\/a> \u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<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\/202306-css-cos-sin.png';<\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202306\/triangle-cover.png\" width=\"421\" height=\"273\" alt=\"\u4e09\u89d2\u5c01\u9762\" class=\"alignright clip thumb size-medium\" \/><\/p>\n<h3>\u4e00\u3001\u524d\u8a00<\/h3>\n<p>\u5c31\u5728\u6700\u65b0\uff0c\u6240\u6709\u73b0\u4ee3\u6d4f\u89c8\u5668\u5747\u652f\u6301\u4e86 CSS \u6570\u5b66\u51fd\u6570\u4e2d\u7684\u4e09\u89d2\u51fd\u6570\uff0c\u5305\u62ec\u4e0b\u9762\u8fd9\u4e9b\uff1a<\/p>\n<ul>\n<li>sin()<\/li>\n<li>cos()<\/li>\n<li>tan()<\/li>\n<li>asin()<\/li>\n<li>acos()<\/li>\n<li>atan()<\/li>\n<li>atan2()<\/li>\n<\/ul>\n<p>\u517c\u5bb9\u6027\u89c1\u4e0b\u56fe\uff0c\u4ee5sin()\u51fd\u6570\u4e3e\u4f8b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202306\/2023-06-27_235155.png\" width=\"472\" height=\"223\" alt=\"sin()\u51fd\u6570\u517c\u5bb9\u6027\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u8fd97\u4e2a\u4e09\u89d2\u51fd\u6570\u4e2d\uff0c\u6709\u7684\u51fd\u6570\u6839\u636e\u89d2\u5ea6\u8fd4\u56de\u5bf9\u5e94\u7684\u5f27\u5ea6\u503c\uff0c\u6709\u7684\u662f\u6839\u636e\u5f27\u5ea6\u503c\u8fd4\u56de\u5bf9\u5e94\u7684\u89d2\u5ea6\u503c\uff08\u4ee5\u5b57\u6bcd a \u6253\u5934\u7684\u90a3\u51e0\u4e2a\u51fd\u6570\uff09\u3002<\/p>\n<p>\u793a\u610f\uff1a<\/p>\n<pre>\/* \u6b63\u5f26\u51fd\u6570 *\/\r\nwidth: calc(100px * sin(45deg));\r\n\/* \u53cd\u6b63\u5f26 *\/\r\ntransform: rotate(asin(-0.2));<\/pre>\n<p>\u9996\u5148\uff0c\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u6848\u4f8b\uff0c\u770b\u770b\u4e09\u89d2\u51fd\u6570\u7684\u6e32\u67d3\u8868\u73b0\u6548\u679c\u3002<\/p>\n<p>\u8fd9\u4e2a\u6848\u4f8b\u4e4b\u524d\u6709\u4e13\u95e8\u64b0\u6587\u4ecb\u7ecd\u901a\u8fc7\uff0c\u5c31\u662f<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2018\/05\/js-dom-transform-line-chart\/\">\u5982\u4f55\u5b9e\u73b0\u6298\u7ebf\u56fe<\/a>\uff0c\u4e0d\u8fc7\u5f53\u65f6\u662f\u4f7f\u7528JS\u5b9e\u73b0\u7684\uff0c\u8fd9\u91cc\u4f1a\u6f14\u793a\u5982\u4f55\u4f7f\u7528CSS\u6570\u5b66\u51fd\u6570\u5b9e\u73b0\uff0c\u4ee3\u7801\u80af\u5b9a\u6bd4\u4e4b\u524d\u7b80\u4ecb\u4e86\u5f88\u591a\u3002<\/p>\n<h3>\u4e8c\u3001\u4f4d\u7f6e\u4e0e\u6298\u7ebf<\/h3>\n<p>\u9700\u6c42\u5982\u4e0b\uff0c\u5df2\u77e5\u4e24\u4e2a\u70b9\u7684\u5750\u6807\uff0c\u7ed8\u5236\u8fd9\u4e24\u4e2a\u70b9\uff0c\u4ee5\u53ca\u70b9\u4e0e\u70b9\u4e4b\u95f4\u7684\u8fde\u63a5\u7ebf\u3002<\/p>\n<p><strong>\u6548\u679c\u5148\u884c<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u72e0\u72e0\u5730\u70b9\u51fb\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.zhangxinxu.com\/study\/202306\/css-cos-sin-join-line-demo.php\" rel=\"noopener\" target=\"_blank\">CSS\u9a71\u52a8\u7684\u6298\u7ebf\u6548\u679cdemo<\/a><\/p>\n<p>\u6548\u679c\u5982\u4e0bGIF\u5f55\u5c4f\u793a\u610f\uff0c\u70b9\u51fb\u6309\u94ae\uff0c\u968f\u673a\u751f\u6210\u4e24\u4e2a\u70b9\uff0c\u53ef\u4ee5\u770b\u5230\u6298\u7ebf\u81ea\u52a8\u8ddf\u968f\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202306\/two-points.gif\" width=\"375\" height=\"193\" alt=\"\u70b9\u548c\u6298\u7ebf\" class=\"alignnone size-medium\" \/><\/p>\n<p>\u5176\u4e2d\uff0c\u5c31\u7528\u5230\u4e86\u4e09\u89d2\u51fd\u6570\u3002<\/p>\n<p><strong>\u5177\u4f53\u5b9e\u73b0<\/strong><\/p>\n<p>\u5177\u4f53\u5b9e\u73b0\u5982\u4e0b\uff0c\u9996\u5148\u662fHTML\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;div id=\"box\" class=\"box\"&gt;\r\n    &lt;i class=\"dot1\"&gt;&lt;\/i&gt;\r\n    &lt;span class=\"line\"&gt;&lt;\/span&gt;\r\n    &lt;i class=\"dot2\"&gt;&lt;\/i&gt;\r\n&lt;\/div&gt; <\/pre>\n<p>\u5916\u9762\u662f\u76d2\u5b50\u5143\u7d20\uff0c\u91cc\u9762\u6709\u4e24\u70b9\u4e00\u7ebf\u3002<\/p>\n<p>\u4e3a\u4e86\u65b9\u4fbf\u7ed8\u5236\uff0c\u6211\u4eec\u53ef\u4ee5\u628a\u5750\u6807\u4f4d\u7f6e\u503c\u4f7f\u7528<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2016\/11\/css-css3-variables-var\/\">CSS\u53d8\u91cf<\/a>\u7684\u5f62\u5f0f\u8bbe\u7f6e\u5728\u5916\u90e8\u5bb9\u5668\u5143\u7d20\u4e0a\uff08CSS\u53d8\u91cf\u5929\u7136\u7ee7\u627f\uff09\u3002<\/p>\n<p>JS\u7684\u4f5c\u7528\u5f88\u7b80\u5355\uff0c\u521b\u5efa\u968f\u673a\u70b9\u5750\u6807\uff0c\u7528\u6765\u793a\u610f\u6548\u679c\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre>box.style.setProperty('--x1', Math.round(150 * Math.random()));    \r\nbox.style.setProperty('--y1', Math.round(150 * Math.random()));    \r\nbox.style.setProperty('--x2', 150 + Math.round(150 * Math.random()));    \r\nbox.style.setProperty('--y2', Math.round(150 * Math.random()));<\/pre>\n<p>\u91cd\u70b9\u662fCSS\u90e8\u5206\uff0c\u9996\u5148\uff0c\u6298\u7ebf\u7684\u957f\u5ea6\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528CSS\u6570\u5b66\u51fd\u6570 hypot() \u5b9e\u73b0\uff0c\u800c\u6298\u7ebf\u65cb\u8f6c\u7684\u89d2\u5ea6\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u53cd\u6b63\u5207\u4e09\u89d2\u51fd\u6570 atan() \u8ba1\u7b97\u5f97\u51fa\uff0c\u4e8e\u662f\u6709\u5982\u4e0b\u6240\u793a\u7684\u4ee3\u7801\uff1a<\/p>\n<pre>.box { \r\n    border: 1px solid #bbb;\r\n    position: relative;\r\n    \/* \u5750\u6807\u52a0px\u5355\u4f4d *\/\r\n    --p1x: calc(var(--x1) * 1px);\r\n    --p1y: calc(var(--y1) * 1px);\r\n    --p2x: calc(var(--x2) * 1px);\r\n    --p2y: calc(var(--y2) * 1px);\r\n}\r\n.box > i {\r\n    position: absolute;\r\n    width: 5px; height: 5px;\r\n    border-radius: 100%;\r\n    background-color: currentColor;    \r\n}\r\n.dot1,\r\n.line {\r\n    left: var(--p1x);\r\n    top: var(--p1y);\r\n}\r\n.dot2 {\r\n    left: var(--p2x);\r\n    top: var(--p2y);\r\n}\r\n.line {\r\n    position: absolute;\r\n    border-top: 1px solid;\r\n    \/* \u5bbd\u5ea6 *\/\r\n    width: hypot(var(--p2y) - var(--p1y), var(--p2x) - var(--p1x));\r\n    transform-origin: left bottom;\r\n    \/* \u65cb\u8f6c\u89d2\u5ea6 *\/\r\n    transform: rotate(atan((var(--y2) - var(--y1)) \/  (var(--x2) - var(--x1))));\r\n}<\/pre>\n<p><strong>\u5176\u4ed6<\/strong><\/p>\n<p>hypot()\u6570\u5b66\u51fd\u6570\uff0c\u76ee\u524d\u4ec5Safari\u6d4f\u89c8\u5668\u652f\u6301\uff0ccaniuse\u4e0a\u76ee\u524d\u7684\u517c\u5bb9\u6027\u793a\u610f\u662f\u6709\u8bef\u7684\uff08\u89c1\u4e0b\u56fe\u793a\u610f\uff09\uff0c\u6839\u636e\u6211\u7684\u6d4b\u8bd5\uff0cFirefox\u5e76\u4e0d\u652f\u6301\uff08\u6216\u8005\u4e0d\u662f\u8fd9\u4e2a\u8bed\u6cd5\uff09\uff0cdemo\u9875\u9762\u5bf9\u6b64\u505a\u4e86\u515c\u5e95\u517c\u5bb9\u5904\u7406\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202306\/2023-06-28_230924.png\" width=\"420\" height=\"253\" alt=\"Firefox\u517c\u5bb9\u6027\u6709\u8bef\" class=\"alignnone size-medium\" \/><\/p>\n<h3>\u4e09\u3001\u73af\u5f62\u5e03\u5c40<\/h3>\n<p>\u8981\u8bf4\u4e09\u89d2\u51fd\u6570\u53e6\u5916\u4e00\u4e2a\u5e38\u89c1\u5e94\u7528\uff0c\u4e00\u5b9a\u662f\u73af\u5f62\u5e03\u5c40\u4e86\u3002<\/p>\n<p>\u7c7b\u4f3c\u949f\u8868\u6570\u5b57\uff0c3D\u65cb\u8f6c\u6728\u9a6c\u52a8\u753b\u3002<\/p>\n<p>\u5728\u8fc7\u53bb\uff0c\u8fd9\u4e9b\u5143\u7d20\u7684\u5b9a\u4f4d\u53ea\u80fd\u662fJS\u8ba1\u7b97\uff08\u6216\u8005<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2020\/09\/svg-text-around-path\/\">SVG\u7684&lt;textPath&gt;\u5143\u7d20\u5b9e\u73b0\u6587\u5b57\u73af\u7ed5<\/a>\uff09\uff0c\u73b0\u5728\u53ef\u4ee5\u4ea4\u7ed9CSS\u3002<\/p>\n<h4>1. 3D\u65cb\u8f6c\u6728\u9a6c<\/h4>\n<p>\u6b64\u6548\u679c\u5728\u4ecb\u7ecd<a href=\"https:\/\/www.zhangxinxu.com\/wordpress\/2012\/09\/css3-3d-transform-perspective-animate-transition\/\">CSS3 3D transform\u8fd9\u7bc7\u6587\u7ae0<\/a>\u65f6\u5019\u7684\u6709\u793a\u610f\u3002<\/p>\n<p>\u5176\u4e2d\uff0c\u5404\u4e2a\u56fe\u7247\u7684\u5206\u5e03\u5b9a\u4f4d\u662f\u4f7f\u7528JS\u679a\u4e3e\u8ba1\u7b97\u5f97\u5230\u7684\uff0c\u73b0\u5728\uff0c\u65e0\u9700\u8fd9\u4e48\u9ebb\u70e6\u4e86\u3002<\/p>\n<p>\u53ea\u8981\u6839\u636e\u5df2\u77e5\u7684\u89d2\u5ea6\uff0c\u8bbe\u7f6e\u597d\u5bf9\u5e94\u7684\u4e09\u89d2\u51fd\u6570\uff0c\u504f\u79fb\u5927\u5c0f\u81ea\u52a8\u83b7\u5f97\u3002<\/p>\n<p>\u76f8\u5173HTML\u4ee3\u7801\u548cCSS code\uff08\u4ec5\u5c55\u793a\u6838\u5fc3\u90e8\u5206\uff09\uff1a<\/p>\n<pre>&lt;div id=\"container\" class=\"container\"&gt;\r\n    &lt;img src=\"1.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"2.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"3.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"4.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"5.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"6.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"7.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"8.jpg\" class=\"piece\" \/&gt;\r\n    &lt;img src=\"9.jpg\" class=\"piece\" \/&gt;\r\n&lt;\/div&gt;<\/pre>\n<pre>.container {\r\n    --size: 128px;\r\n    width: var(--size);\r\n    height: 100px;\r\n    transition: transform 1s;\r\n    transform-style: preserve-3d; \r\n}\r\n\r\n.piece {\r\n    width: var(--size);\r\n    position: absolute;\r\n    \/\/ 40 \u662f\u65cb\u8f6c\u89d2\u5ea6\uff0c\u4ee5\u6b64\u8bb0\u4f4ftan()\u51fd\u6570\u7b97\u51fa\u504f\u79fb\u503c\r\n    --z: calc(40px + var(--size) \/ tan((40 \/ 180) * 3.14159));\r\n    transform: rotateY(calc(40deg * var(--index))) translateZ(var(--z));\r\n}\r\n.piece:nth-child(1) { --index: 0; }\r\n.piece:nth-child(2) { --index: 1; }\r\n.piece:nth-child(3) { --index: 2; }\r\n.piece:nth-child(4) { --index: 3; }\r\n.piece:nth-child(5) { --index: 4; }\r\n.piece:nth-child(6) { --index: 5; }\r\n.piece:nth-child(7) { --index: 6; }\r\n.piece:nth-child(8) { --index: 7; }\r\n.piece:nth-child(9) { --index: 8; }<\/pre>\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\/202306\/css-tan-function-rotate-transform-demo.html\" rel=\"noopener\" target=\"_blank\">CSS \u4e09\u89d2\u51fd\u6570\u4e0e3D\u65cb\u8f6c\u6728\u9a6c\u6548\u679cdemo<\/a><\/p>\n<p>\u70b9\u51fb\u56fe\u7247\u53ef\u4ee5\u770b\u5230\u65cb\u8f6c\u6548\u679c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/201801\/2018-01-02_112734.jpg\" width=\"452\" height=\"163\" alt=\"\u65cb\u8f6c\u56fe\u7247\u6548\u679c\" class=\"alignnone size-medium\" \/><\/p>\n<h4>2. CSS\u949f\u8868<\/h4>\n<p>\u949f\u8868\u4e0a1-12\u629812\u4e2a\u6570\u5b57\u6309\u7167\u5706\u5f62\u7b49\u95f4\u8ddd\u6392\u5e03\uff0c\u4e5f\u662fCSS\u4e09\u89d2\u51fd\u6570\u7684\u5178\u578b\u5e94\u7528\u3002<\/p>\n<p>\u76f4\u63a5\u770b\u6548\u679c\uff08<a href=\"https:\/\/codepen.io\/stoumann\/pen\/wvxOQKo\" rel=\"noopener\" target=\"_blank\">\u539f\u4f5c\u8005stoumann<\/a>\uff0c\u6709\u5220\u6539\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202306\/2023-06-29_002113.png\" width=\"329\" height=\"334\" alt=\"\u949f\u8868\" 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\/202306\/css-clock-demo.php\" rel=\"noopener\" target=\"_blank\">CSS\u7ed8\u5236\u7684\u949f\u8868\u6548\u679cdemo<\/a><\/p>\n<p>\u5176\u4ed6\u5b9e\u73b0\u7ec6\u8282\u4e0d\u8868\uff0c\u4e3b\u8981\u770b\u4e0b\u6570\u5b57\u7684\u6392\u7248\u5b9a\u4f4d\u3002<\/p>\n<pre>.clock-face time {\r\n  --x: calc(var(--radius) + (var(--radius) * cos(var(--index) * 30deg)));\r\n  --y: calc(var(--radius) + (var(--radius) * sin(var(--index) * 30deg)));\r\n  display: grid;\r\n  place-content: center;\r\n  height: 2em; width: 2em;\r\n  position: absolute;\r\n  left: var(--x);\r\n  top: var(--y);\r\n}\r\n\r\n.clock-face time:nth-child(1) { --index: 9; }\r\n.clock-face time:nth-child(2) { --index: 10; }\r\n.clock-face time:nth-child(3) { --index: 11; }\r\n.clock-face time:nth-child(4) { --index: 0; }\r\n.clock-face time:nth-child(5) { --index: 1; }\r\n.clock-face time:nth-child(6) { --index: 2; }\r\n.clock-face time:nth-child(7) { --index: 3; }\r\n.clock-face time:nth-child(8) { --index: 4; }\r\n.clock-face time:nth-child(9) { --index: 5; }\r\n.clock-face time:nth-child(10) { --index: 6; }\r\n.clock-face time:nth-child(11) { --index: 7; }\r\n.clock-face time:nth-child(12) { --index: 8; }<\/pre>\n<p>\u5b8c\u6574\u4ee3\u7801\u53c2\u89c1demo\uff0c\u4e0d\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n<h3>\u56db\u3001\u7ed3\u8bed\u4e0e\u626f\u6de1<\/h3>\n<p>\u867d\u7136\u4e09\u89d2\u51fd\u6570\u76ee\u524dChrome\u6d4f\u89c8\u5668\u5df2\u7ecf\u652f\u6301\uff0c\u4f46\u662f\u5176\u4ed6\u6570\u5b66\u51fd\u6570\uff0c\u4f8b\u5982\u6c42\u5e73\u65b9\u6839\u7684sqrt()\u51fd\u6570\uff0c\u5e42\u6307\u6570\u7684pow()\u51fd\u6570\uff0c\u8fd4\u56de\u7ed9\u5b9a\u6570\u5b57\u7684\u5e42\u7684\u6570\u5b66\u5e38\u6570e\u7684\u7279\u6b8a\u6307\u6570\u51fd\u6570exp()\uff0c\u8fd4\u56de\u6570\u5b57\u5bf9\u6570\u7684log()\u51fd\u6570\uff0c\u7edd\u5bf9\u503cabs()\u51fd\u6570\uff0c\u53d6\u4f59\u6570\u7684rem()\u548cmod()\u51fd\u6570\uff0c\u56db\u820d\u4e94\u5165\u7684round()\u51fd\u6570\uff0c\u6b63\u8d1f\u96f6\u5224\u65ad\u7684sign()\u7684\u51fd\u6570\uff0c\u76ee\u524d\u90fd\u53ea\u6709Safari\u6d4f\u89c8\u5668\u652f\u6301\uff0cSafari 15.4+<\/p>\n<p>\u611f\u89c9\u6240\u6709\u73b0\u4ee3\u6d4f\u89c8\u5668\u652f\u6301\uff0c\u8fd8\u9700\u8981\u4e9b\u65f6\u65e5\u3002<\/p>\n<p>\u8fd9\u4e9bCSS\u51fd\u6570\u7684\u51fa\u73b0\uff0c\u6216\u8005\u5927\u89c4\u6a21\u5e94\u7528\u90fd\u79bb\u4e0d\u5f00CSS\u53d8\u91cf\u7684\u652f\u6301\uff0c\u56e0\u6b64\uff0c\u4f1a\u4e0d\u65ad\u5f3a\u5316CSS\u53d8\u91cf\u7684\u5730\u4f4d\u3002<\/p>\n<h4>\u626f\u6de1\u65f6\u95f4<\/h4>\n<p>\u626f\u4e9b\u4ec0\u4e48\u5462\uff0c\u751f\u6d3b\u4e0a\uff0c\u65e0\u975e\u5c31\u662f\u9493\u9c7c\uff0c\u7aef\u5348\u4e09\u5929\u9493\u9c7c\uff0c\u573a\u573a\u90fd\u8fd8\u4e0d\u9519\u3002<\/p>\n<p>\u5de5\u4f5c\u4e0a\uff0c\u524d\u5929\u6362\u4e86\u65b0\u5de5\u4f4d\uff0c\u660e\u5929\u53c8\u6709\u65b0\u56e2\u5efa\uff0c\u4e5f\u6ca1\u4ec0\u4e48\u597d\u8bb2\u7684\u3002<\/p>\n<p>\u5012\u662f7\u6708\u4efd\uff0c\u8ba1\u5212\u6765\u4e00\u8d9f\u81ea\u9a7e\u6e38\uff0c\u4e00\u8def\u5411\u5357\uff0c\u81ea\u9a7e\u5230\u53a6\u95e8\u3002<\/p>\n<p>\u4eca\u5e7420\u5929\u7684\u5e74\u5047\u5df2\u7ecf\u7528\u4e86\u4e00\u534a\u4e86\uff0c\u6b63\u597d\u534a\u5e74\u8fc7\u53bb\uff0c\u4e0b\u534a\u5e74\u8fd8\u8981\u7701\u7740\u70b9\u7528\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u5e74\u5047\u8fd9\u4e48\u591a\uff1f<\/p>\n<p>\u4e00\u6765\u5de5\u9f84\u957f\uff0c\u4e8c\u6765\u516c\u53f8\u798f\u5229\u53f7\uff0c\u6709\u8d60\u9001\uff0c\u4e09\u6765\u7ee9\u6548\u7684\u5956\u52b1\u3002<\/p>\n<p>\u5662\u5566\uff0c\u5c31\u626f\u8fd9\u4e48\u591a\u5427\uff0c\u626f\u6de1\u4e5f\u662f\u8981\u770b\u5fc3\u60c5\u7684\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/202306\/sut-s.jpg\" width=\"128\" height=\"128\" alt=\"\u82cf\u6a80\u513f\" class=\"alignnone size-medium\" \/><\/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=10901\">https:\/\/www.zhangxinxu.com\/wordpress\/?p=10901<\/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\/202306\/triangle-cover.png\" width=\"160\" height=\"104\" alt=\"\u4e09\u89d2\u5c01\u9762\" class=\"alignright size-medium\" loading=\"lazy\" \/><\/p>\n<p>\u6211\u53d1\u73b0\uff0c\u6709\u4e2aCSS\u4e09\u89d2\u51fd\u6570\u4e4b\u540e\uff0c\u4ee5\u524d\u5f88\u591a\u9700\u8981JS\u8ba1\u7b97\u624d\u80fd\u5b9e\u73b0\u7684\u5e03\u5c40\u73b0\u5728\u90fd\u53ef\u4ee5\u7eafCSS\u5b8c\u6210\u4e86\uff0c\u4ee3\u7801\u7b80\u6d01\u4e86\u4e0d\u5c11\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":[1930,1927,1591,1506,1595,1929,1928,1178],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10901"}],"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=10901"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/10901\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=10901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=10901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=10901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}