{"id":52679,"date":"2024-12-03T17:49:10","date_gmt":"2024-12-03T09:49:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52679\/"},"modified":"2024-12-03T17:49:10","modified_gmt":"2024-12-03T09:49:10","slug":"%e5%a6%82%e4%bd%95%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa%e5%b8%a6%e9%bd%bf%e7%8a%b6%e3%80%81%e5%8f%af%e6%97%8b%e8%bd%ac%e7%9a%84%e7%99%bd%e8%89%b2%e6%b8%90%e5%8f%98%e9%80%8f%e6%98%8e%e5%9c%86%e7%8e%af-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52679\/","title":{"rendered":"\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f <\/h1>\n<p>\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f \u300b<\/span>\u5c06\u4f1a\u4ecb\u7ecd\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241122\/173226388367403fcb52a0c.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5e26\u9f7f\u72b6\u5706\u73af\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u6548\u679c<\/strong><\/p>\n<p>\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u5706\u73af\uff0c\u5de6\u4e0a\u89d2\u767d\u8272\uff0c\u5176\u4ed6\u90e8\u5206\u767d\u8272\u6e10\u53d8\u900f\u660e\uff0c\u53f3\u4e0b\u89d2\u5168\u6d88\u5931\u7684\u5706\u73af\uff0c\u540c\u65f6\u5706\u73af\u53ef\u65cb\u8f6c\u4f46\u6e10\u53d8\u533a\u57df\u4e0d\u53d8\uff1f<\/p>\n<p><strong>\u5b9e\u73b0\u65b9\u6cd5<\/strong><\/p>\n<p>\u5b9e\u73b0\u6b64\u6548\u679c\u9700\u8981\u4f7f\u7528CSS\u3002\u9996\u5148\uff0c\u4f7f\u7528transform\u5c5e\u6027\u65cb\u8f6c\u5706\u73af\u3002\u7136\u540e\uff0c\u4f7f\u7528background:linear-gradien()\u521b\u5efa\u767d\u8272\u6e10\u53d8\u900f\u660e\u7684\u80cc\u666f\u8272\u3002<\/p>\n<p>\u4e3a\u4e86\u4f7f\u6e10\u53d8\u533a\u57df\u4ece\u5de6\u4e0a\u89d2\u5230\u53f3\u4e0b\u89d2\uff0c\u53ef\u4ee5\u4f7f\u7528mask\u906e\u7f69\u3002\u4ee5\u4e0b\u662f\u4e00\u6bb5\u5b9e\u73b0\u6b64\u6548\u679c\u7684\u4ee3\u7801\uff1a<\/p>\n<pre>.tooth-ring {\n  width: 200px;\n  height: 200px;\n  border: 1px solid black;\n  border-radius: 50%;\n  transform: rotate(45deg);\n  background: linear-gradient(135deg, white 0%, transparent 100%);\n  mask: -webkit-radial-gradient(center, farthest-side, transparent, #fff);\n  animation: rotate 10s infinite linear;\n}\n\n@keyframes rotate {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n}<\/pre>\n<p><strong>\u63a8\u8350\u9605\u8bfb<\/strong><\/p>\n<ul>\n<li>linear-gradient() &#8211; CSS\uff08\u5c42\u53e0\u6837\u5f0f\u8868\uff09 | MDN<\/li>\n<li>transform &#8211; CSS\uff08\u5c42\u53e0\u6837\u5f0f\u8868\uff09 | MDN<\/li>\n<li>animation &#8211; CSS\uff08\u5c42\u53e0\u6837\u5f0f\u8868\uff09 | MDN<\/li>\n<li>@keyframes &#8211; CSS\uff08\u5c42\u53e0\u6837\u5f0f\u8868\uff09 | MDN<\/li>\n<li>mask &#8211; CSS\uff08\u5c42\u53e0\u6837\u5f0f\u8868\uff09 | MDN<\/li>\n<\/ul>\n<p>\u4eca\u5929\u5173\u4e8e\u300a\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f \u300b\u7684\u5185\u5bb9\u5c31\u4ecb\u7ecd\u5230\u8fd9\u91cc\u4e86\uff0c\u662f\u4e0d\u662f\u5b66\u8d77\u6765\u4e00\u76ee\u4e86\u7136\uff01\u60f3\u8981\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u5185\u5bb9\u8bf7\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Vue \u8de8\u57df\u914d\u7f6e\u4ee3\u7406\u540e\u4f9d\u7136\u62a5\u9519\uff0c\u5982\u4f55\u6392\u67e5\u95ee\u9898\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f \u5b66\u4e60\u6587\u7ae0\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0\u300a\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u3001\u53ef\u65cb\u8f6c\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u5706\u73af\uff1f \u300b\u5c06\u4f1a\u4ecb\u7ecd\u5230\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60\u6587\u7ae0\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01 \u5e26\u9f7f\u72b6\u5706\u73af\u7684\u767d\u8272\u6e10\u53d8\u900f\u660e\u6548\u679c \u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5e26\u9f7f\u72b6\u5706\u73af\uff0c\u5de6\u4e0a\u89d2\u767d\u8272\uff0c\u5176\u4ed6\u90e8\u5206\u767d\u8272\u6e10\u53d8\u900f\u660e\uff0c\u53f3\u4e0b\u89d2\u5168\u6d88\u5931\u7684\u5706\u73af\uff0c\u540c\u65f6\u5706\u73af\u53ef\u65cb\u8f6c\u4f46\u6e10\u53d8\u533a\u57df\u4e0d\u53d8\uff1f \u5b9e\u73b0\u65b9\u6cd5 \u5b9e\u73b0\u6b64\u6548\u679c\u9700\u8981\u4f7f\u7528CSS\u3002\u9996\u5148\uff0c\u4f7f\u7528transform\u5c5e\u6027\u65cb\u8f6c\u5706\u73af\u3002\u7136\u540e\uff0c\u4f7f\u7528background:linear-gradien()\u521b\u5efa\u767d\u8272\u6e10\u53d8\u900f\u660e\u7684\u80cc\u666f\u8272\u3002 \u4e3a\u4e86\u4f7f\u6e10\u53d8\u533a\u57df\u4ece\u5de6\u4e0a\u89d2\u5230\u53f3\u4e0b\u89d2\uff0c\u53ef\u4ee5\u4f7f\u7528mask\u906e\u7f69\u3002\u4ee5\u4e0b\u662f\u4e00\u6bb5\u5b9e\u73b0\u6b64\u6548\u679c\u7684\u4ee3\u7801\uff1a .tooth-ring { width: 200px; height: 200px; border: 1px solid black; border-radius: 50%; transform: rotate(45deg); background: linear-gradient(135deg, white 0%, transparent 100%); mask: -webkit-radial-gradient(center, farthest-side, transparent, #fff); animation: rotate 10s infinite linear; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } \u63a8\u8350\u9605\u8bfb linear-gradient() [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-52679","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52679"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52679\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}