{"id":53434,"date":"2024-12-03T10:19:07","date_gmt":"2024-12-03T02:19:07","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53434\/"},"modified":"2024-12-03T10:19:07","modified_gmt":"2024-12-03T02:19:07","slug":"%e5%a6%82%e4%bd%95%e5%88%a9%e7%94%a8-html-%e5%92%8c-css-%e5%ae%9e%e7%8e%b0%e6%a4%ad%e5%9c%86%e5%bd%a2%e5%b8%83%e5%b1%80%ef%bc%8c%e5%b9%b6%e5%9c%a8%e6%a4%ad%e5%9c%86%e5%bd%a2%e8%b7%af%e5%be%84-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53434\/","title":{"rendered":"\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f <\/h1>\n<p>\u672c\u7bc7\u6587\u7ae0\u4e3b\u8981\u662f\u7ed3\u5408\u6211\u4e4b\u524d\u9762\u8bd5\u7684\u5404\u79cd\u7ecf\u5386\u548c\u5b9e\u6218\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u95ee\u9898\u89e3\u51b3\u7ecf\u9a8c\u6574\u7406\u7684\uff0c\u5e0c\u671b\u8fd9\u7bc7\u300a\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f \u300b\u5bf9\u4f60\u6709\u5f88\u5927\u5e2e\u52a9\uff01\u6b22\u8fce\u6536\u85cf\uff0c\u5206\u4eab\u7ed9\u66f4\u591a\u7684\u9700\u8981\u7684\u670b\u53cb\u5b66\u4e60~<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241130\/1732949873674ab77107cb3.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>HTML \u7684\u692d\u5706\u5f62\u5e03\u5c40\u5b9e\u73b0<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>\u5982\u4f55\u4f7f\u7528 HTML \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5373\u5728\u4f1a\u8bae\u684c\u56fe\u50cf\u5468\u56f4\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u5229\u7528 offset-path \u548c offset-distance \u5c5e\u6027\uff0c\u53ef\u8f7b\u677e\u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\u3002<\/p>\n<p><strong>\u64cd\u4f5c\u6b65\u9aa4\uff1a<\/strong><\/p>\n<ol>\n<li>\u7ed8\u5236\u692d\u5706\u8def\u5f84\uff1a\u4f7f\u7528\u8bbe\u8ba1\u8f6f\u4ef6\u751f\u6210 SVG\uff0c\u5c06\u5176\u8f6c\u6362\u4e3a\u8def\u5f84\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<pre>&lt;path d=\"M0 102.5a102.5 102.5 0 0 1 102.5 -102.5h237a102.5 102.5 0 0 1 102.5 102.5v0a102.5 102.5 0 0 1 -102.5 102.5h-237a102.5 102.5 0 0 1 -102.5 -102.5z\"&gt;&lt;\/path&gt;<\/pre>\n<ol>\n<li>\u4f7f\u7528 offset-path \u548c offset-distance \u5c5e\u6027\uff1a<\/li>\n<\/ol>\n<pre>.seat {\n  position: absolute;\n  offset-path: path('M0 102.5a102.5 102.5 0 0 1 102.5 -102.5h237a102.5 102.5 0 0 1 102.5 102.5v0a102.5 102.5 0 0 1 -102.5 102.5h-237a102.5 102.5 0 0 1 -102.5 -102.5z');\n  offset-distance: calc(var(--i) * 10% \/ 1.4);\n  offset-rotate: 0deg;\n}<\/pre>\n<p>\u5176\u4e2d\uff0c&#8211;i \u53d8\u91cf\u63a7\u5236\u5ea7\u4f4d\u7684\u7f16\u53f7\u548c\u4f4d\u7f6e\u3002<\/p>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u64cd\u4f5c\uff0c\u692d\u5706\u5f62\u5e03\u5c40\u5373\u53ef\u5b9e\u73b0\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u7ed3\u675f\uff0c\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u300a\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f \u300b\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u7ed9\u5927\u5bb6\u5206\u4eab\u66f4\u591a\u6587\u7ae0\u77e5\u8bc6\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   \u5982\u4f55\u89e3\u51b3\u5728\u73af\u5883\u4e2d\u8fd0\u884c .py \u6587\u4ef6\u65f6\u9047\u5230\u7684 Python \u5bfc\u5165\u9519\u8bef\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f \u672c\u7bc7\u6587\u7ae0\u4e3b\u8981\u662f\u7ed3\u5408\u6211\u4e4b\u524d\u9762\u8bd5\u7684\u5404\u79cd\u7ecf\u5386\u548c\u5b9e\u6218\u5f00\u53d1\u4e2d\u9047\u5230\u7684\u95ee\u9898\u89e3\u51b3\u7ecf\u9a8c\u6574\u7406\u7684\uff0c\u5e0c\u671b\u8fd9\u7bc7\u300a\u5982\u4f55\u5229\u7528 HTML \u548c CSS \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5e76\u5728\u692d\u5706\u5f62\u8def\u5f84\u4e0a\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f \u300b\u5bf9\u4f60\u6709\u5f88\u5927\u5e2e\u52a9\uff01\u6b22\u8fce\u6536\u85cf\uff0c\u5206\u4eab\u7ed9\u66f4\u591a\u7684\u9700\u8981\u7684\u670b\u53cb\u5b66\u4e60~ HTML \u7684\u692d\u5706\u5f62\u5e03\u5c40\u5b9e\u73b0 \u95ee\u9898\uff1a\u5982\u4f55\u4f7f\u7528 HTML \u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\uff0c\u5373\u5728\u4f1a\u8bae\u684c\u56fe\u50cf\u5468\u56f4\u6e32\u67d3\u53ef\u70b9\u51fb\u5ea7\u4f4d\uff1f \u89e3\u51b3\u65b9\u6cd5\uff1a \u5229\u7528 offset-path \u548c offset-distance \u5c5e\u6027\uff0c\u53ef\u8f7b\u677e\u5b9e\u73b0\u692d\u5706\u5f62\u5e03\u5c40\u3002 \u64cd\u4f5c\u6b65\u9aa4\uff1a \u7ed8\u5236\u692d\u5706\u8def\u5f84\uff1a\u4f7f\u7528\u8bbe\u8ba1\u8f6f\u4ef6\u751f\u6210 SVG\uff0c\u5c06\u5176\u8f6c\u6362\u4e3a\u8def\u5f84\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a &lt;path d=&#8221;M0 102.5a102.5 102.5 0 0 1 102.5 -102.5h237a102.5 102.5 0 0 1 102.5 102.5v0a102.5 102.5 0 0 1 -102.5 102.5h-237a102.5 102.5 0 0 1 -102.5 -102.5z&#8221;&gt;&lt;\/path&gt; \u4f7f\u7528 offset-path \u548c [&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-53434","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53434","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=53434"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53434\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}