{"id":4281,"date":"2024-04-15T03:48:31","date_gmt":"2024-04-14T19:48:31","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4281"},"modified":"2024-04-15T03:48:31","modified_gmt":"2024-04-14T19:48:31","slug":"customized-css-attributes-and-characteristics","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/zh_cn\/customized-css-attributes-and-characteristics\/","title":{"rendered":"\u81ea\u5b9a\u4e49 CSS \u5c5e\u6027\u548c\u7279\u6027"},"content":{"rendered":"<div class=\"docs_rich-text w-richtext\">\n<p>\u8981\u81ea\u5b9a\u4e49 HTML \u5143\u7d20\uff0c\u8bf7\u63d2\u5165 <a href=\"https:\/\/webflow.com\/glossary\/cascading-style-sheets-css\">\u5c42\u53e0\u6837\u5f0f\u8868<\/a> \uff08CSS\uff09\u5c5e\u6027\u5230\u7c7b\u6216\u9009\u62e9\u5668\u3002\u5728 Webflow \u4e2d\uff0c\u6837\u5f0f\u9762\u677f\u5141\u8bb8\u8bbf\u95ee\u8bb8\u591a CSS \u5c5e\u6027\uff08\u4f8b\u5982\u4f4d\u7f6e\u3001\u6ea2\u51fa\u3001\u6846\u9634\u5f71\u7b49\uff09\u2014\u2014\u4f46\u5b83\u4e0d\u5bb9\u7eb3 <em>\u5168\u90e8<\/em> CSS \u5c5e\u6027\u3002<\/p>\n<p>\u901a\u8fc7\u5229\u7528\u5b9a\u5236\u7684 CSS \u5c5e\u6027\u548c\u89c4\u8303\uff0c\u60a8\u53ef\u4ee5\u96c6\u6210\u6837\u5f0f\u9762\u677f\u672c\u8eab\u4e0d\u652f\u6301\u7684\u66f4\u5e7f\u6cdb\u7684 CSS \u5c5e\u6027\u548c\u503c\u3002\u8fd9\u63d0\u9ad8\u4e86\u60a8\u7684\u8bbe\u8ba1\u7075\u6d3b\u6027\uff0c\u51cf\u5c11\u4e86\u4e2a\u6027\u5316\u4ee3\u7801\u5d4c\u5165\u7684\u5fc5\u8981\u6027\uff0c\u4ece\u800c\u7b80\u5316\u4e86\u60a8\u7684\u8bbe\u8ba1\u5de5\u4f5c\u6d41\u7a0b\u3002 <\/p>\n<h6><strong>\u8bc4\u8bba\uff1a<\/strong> \u6d4f\u89c8\u5668\u652f\u6301\u53d7\u9650\u7684 CSS \u5c5e\u6027\u548c\u5e26\u6709\u4f9b\u5e94\u5546\u524d\u7f00\uff08\u4f8b\u5982 -webkit\uff09\u7684\u5c5e\u6027\u4e0d\u652f\u6301\u4f5c\u4e3a\u4e2a\u6027\u5316\u5c5e\u6027\u3002<\/h6>\n<h6><strong>\u6709\u7528\u7684\u89c1\u89e3\uff1a<\/strong> \u67d0\u4e9b CSS \u5c5e\u6027\u53ef\u80fd\u4f1a\u5f71\u54cd\u7f51\u7ad9\u6027\u80fd\u3002\u6211\u4eec\u5efa\u8bae\u4f18\u5316\u590d\u6742 CSS \u51fd\u6570\u548c\u5c5e\u6027\u7684\u4f7f\u7528\uff0c\u540c\u65f6\u5c3d\u53ef\u80fd\u51cf\u5c11\u5927\u91cf CSS \u7684\u4f7f\u7528\u3002<\/h6>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u60a8\u5c06\u638c\u63e1\uff1a<\/p>\n<ol start=\"1\" role=\"list\">\n<li>\u5982\u4f55\u878d\u5165\u5b9a\u5236\u7684\u5c5e\u6027\u548c\u4ef7\u503c\u89c2<\/li>\n<li>\u5982\u4f55\u5c06\u4e2a\u6027\u5316\u503c\u94fe\u63a5\u5230 Webflow \u517c\u5bb9\u5c5e\u6027<\/li>\n<li>\u5982\u4f55\u5728\u4e2a\u6027\u5316\u503c\u4e2d\u5b9e\u73b0\u53d8\u91cf<\/li>\n<li>\u5e38\u89c1\u7591\u95ee\u53ca\u89e3\u51b3\u95ee\u9898\u7684\u6280\u5de7<\/li>\n<\/ol>\n<h2>\u5982\u4f55\u878d\u5165\u5b9a\u5236\u7684\u5c5e\u6027\u548c\u4ef7\u503c\u89c2<\/h2>\n<h6><strong>\u5f00\u59cb\u4e4b\u524d\uff1a<\/strong> \u5728\u5143\u7d20\u4e0a\u5efa\u7acb\u4e00\u4e2a\u7c7b\u6216\u5229\u7528 HTML \u6807\u7b7e\u9009\u62e9\u5668\u6765\u9009\u62e9\u4e00\u7ec4\u60a8\u60f3\u8981\u9644\u52a0\u5b9a\u5236\u5c5e\u6027\u7684\u5143\u7d20\u3002<\/h6>\n<p>\u8981\u5c06\u4e2a\u6027\u5316\u5c5e\u6027\u9644\u52a0\u5230\u7c7b\u522b\uff1a<\/p>\n<ol start=\"1\" role=\"list\">\n<li>\u9009\u62e9\u8981\u5f3a\u5236\u5b9e\u65bd\u4e2a\u6027\u5316\u5c5e\u6027\u7684\u5143\u7d20<\/li>\n<li>\u8bbf\u95ee <strong>\u6837\u5f0f\u9762\u677f<\/strong> &gt; <strong>\u81ea\u5b9a\u4e49\u5c5e\u6027<\/strong><\/li>\n<li>\u70b9\u51fb <strong>\u6dfb\u52a0<\/strong><\/li>\n<li>\u8f93\u5165 CSS \u5c5e\u6027 <strong>\u6307\u5b9a<\/strong> \u5728\u6307\u5b9a\u5b57\u6bb5\u4e2d\uff08\u4f8b\u5982\uff0c\u6587\u672c\u88c5\u9970\u989c\u8272\uff09<\/li>\n<li>\u8f93\u5165 <strong>\u4ef7\u503c<\/strong> \u5728\u73b0\u573a\uff08\u4f8b\u5982\uff0c#146EF5\uff09<\/li>\n<li>\u6253 <strong>\u8fdb\u5165<\/strong> \u5728\u4f60\u7684\u952e\u76d8\u4e0a<\/li>\n<\/ol>\n<h6><strong>\u5185\u90e8\u63d0\u793a\uff1a<\/strong> \u60a8\u53ef\u4ee5\u4f7f\u7528\u6d89\u53ca\u9ad8\u7ea7\u51fd\u6570\uff08\u4f8b\u5982\uff0ccalc()\u3001color-mix() \u7b49\uff09\u7684\u81ea\u5b9a\u4e49\u503c\u6765\u83b7\u5f97\u66f4\u51c6\u786e\u548c\u52a8\u6001\u7684\u8bbe\u8ba1\u5f71\u54cd\u3002<\/h6>\n<h6><strong>\u5185\u90e8\u63d0\u793a\uff1a<\/strong> \u60a8\u53ef\u4ee5\u5728 <strong>\u6837\u5f0f\u9762\u677f<\/strong> &gt; <strong>\u81ea\u5b9a\u4e49\u5c5e\u6027<\/strong>.Webflow <a href=\"https:\/\/webflow.com\/glossary\/automagically\">\u81ea\u52a8\u5730<\/a> \u7ec4\u7ec7\u5e76\u5c06 CSS \u5e94\u7528\u5230\u9009\u5b9a\u7684\u5143\u7d20\u3002 <\/h6>\n<p>\u8f93\u5165\u5c5e\u6027\u540d\u79f0\u65f6\uff0c\u4f1a\u81ea\u52a8\u5b8c\u6210\u53ef\u8bbf\u95ee\u5c5e\u6027\u548c\u76f8\u5e94\u952e\u76d8\u5feb\u6377\u952e\u7684\u7f16\u8bd1\uff08\u4f8b\u5982\uff0c <strong>\u547d\u4ee4<\/strong> + <strong>1<\/strong>, <strong>\u547d\u4ee4<\/strong> + <strong>2<\/strong>\u7b49\uff09\u5c06\u5b9e\u73b0\u3002\u8981\u81ea\u52a8\u5316\u5c5e\u6027\u5b57\u6bb5\uff0c\u8bf7\u6309 <strong>\u547d\u4ee4<\/strong> \uff08\u5728 Mac \u4e0a\uff09\u6216 <strong>\u63a7\u5236<\/strong> \uff08\u5728 Windows \u4e0a\uff09+ <strong>\u6570\u5b57<\/strong> \u663e\u793a\u5728\u6240\u9700\u5c5e\u6027\u65c1\u8fb9\u7684\u81ea\u52a8\u5b8c\u6210\u5217\u8868\u4e2d\uff0c\u6216\u4f7f\u7528 <strong>\u5411\u4e0a<\/strong> \u548c <strong>\u5411\u4e0b<\/strong> \u952e\u76d8\u4e0a\u7684\u952e\u7a81\u51fa\u663e\u793a\u60a8\u60f3\u8981\u4f7f\u7528\u7684\u5c5e\u6027\uff0c\u7136\u540e\u6309 <strong>\u8fdb\u5165 <\/strong>\u6216\u8005<strong> \u6807\u7b7e<\/strong> \u9009\u62e9\u5b83\u3002 <\/p>\n<h6><strong>\u5185\u90e8\u63d0\u793a\uff1a<\/strong> \u5f53\u5e94\u7528\u4e00\u7cfb\u5217\u5b9a\u5236\u7684\u5c5e\u6027\u548c\u503c\u65f6\uff0c\u60a8\u53ef\u4ee5\u6309 <strong>\u6807\u7b7e<\/strong> \u8f93\u5165\u4e00\u4e2a\u503c\u540e\u8bb0\u5f55\u8be5\u503c <em>\u548c<\/em> \u5f00\u59cb\u60a8\u60f3\u8981\u6dfb\u52a0\u7684\u4e0b\u4e00\u4e2a\u5c5e\u6027\u3002<\/h6>\n<p>\u5f53\u60a8\u5f15\u5165\u5b9a\u5236\u7684\u5c5e\u6027\u548c\u503c\u65f6\uff0c\u8bbe\u8ba1\u5668\u753b\u5e03\u4f1a\u7acb\u5373\u53cd\u6620\u60a8\u7684\u66f4\u6539\u3002\u5982\u679c\u60a8\u63d2\u5165\u4e0e Webflow \u517c\u5bb9\u7684\u5c5e\u6027\u5e76\u4e3a\u5176\u5206\u914d\u81ea\u5b9a\u4e49\u503c\uff0c\u5b83\u5c06\u53d6\u4ee3\u201c\u6837\u5f0f\u201d\u9762\u677f\u4e2d\u8bbe\u7f6e\u7684\u4efb\u4f55\u73b0\u6709\u503c\u3002\u4e0e\u201c\u6837\u5f0f\u201d\u9762\u677f\u4e2d\u5e94\u7528\u7684\u4efb\u4f55\u6837\u5f0f\u7c7b\u4f3c\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4e3a\u4e0d\u540c\u7684\u65ad\u70b9\u8d4b\u4e88\u4e0d\u540c\u7684\u503c\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6253\u7b97\u67e5\u9605\u7279\u5b9a\u5c5e\u6027\u7684 MDN documentation\uff0c\u8bf7\u5c06\u9f20\u6807\u60ac\u505c\u5728\u5c5e\u6027\u540d\u79f0\u4e0a\uff0c\u7136\u540e\u70b9\u51fb <strong>\u5728 MDN \u4e0a\u67e5\u770b<\/strong>. \u60a8\u8fd8\u53ef\u4ee5\u6301\u6709 <strong>\u547d\u4ee4<\/strong> \uff08\u5728 Mac \u4e0a\uff09\u6216 <strong>\u63a7\u5236<\/strong> \uff08\u5728 Windows \u4e0a\uff09\u5728\u952e\u76d8\u4e0a\u70b9\u51fb\u5c5e\u6027\u540d\u79f0\u4ee5\u5728\u65b0\u9009\u9879\u5361\u4e2d\u89e3\u9501\u5176 MDN documentation\u3002<\/p>\n<p>\u8981\u4ece\u7c7b\u522b\u6216\u6807\u7b7e\u4e2d\u5220\u9664\u4e2a\u6027\u5316\u5c5e\u6027\uff0c\u8bf7\u5c06\u9f20\u6807\u60ac\u505c\u5728\u8981\u5220\u9664\u7684\u5c5e\u6027\u4e0a\uff0c\u7136\u540e\u70b9\u51fb\u201c<strong>\u5783\u573e<\/strong>\u201c \u56fe\u6807\u3002<\/p>\n<h2>\u5982\u4f55\u5c06\u4e2a\u6027\u5316\u503c\u94fe\u63a5\u5230\u4e0e Webflow \u517c\u5bb9\u7684 CSS \u5c5e\u6027<\/h2>\n<p>\u867d\u7136\u4f60\u53ef\u4ee5\u901a\u8fc7\u5728\u73b0\u6709 Webflow \u517c\u5bb9\u5c5e\u6027\u4e2d\u8f93\u5165\u4e2a\u6027\u5316\u503c\u6765\u9644\u52a0\u8fd9\u4e9b\u503c <strong>\u6837\u5f0f\u9762\u677f <\/strong>&gt; <strong>\u81ea\u5b9a\u4e49\u5c5e\u6027<\/strong>\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5c06\u4e2a\u6027\u5316\u503c\u76f4\u63a5\u94fe\u63a5\u5230\u4e0e Webflow \u517c\u5bb9\u7684\u5b57\u4f53\u3001\u5927\u5c0f\u548c\u989c\u8272\u5c5e\u6027\uff1a <\/p>\n<ol start=\"1\" role=\"list\">\n<li>\u542f\u52a8 <strong>\u6837\u5f0f\u9762\u677f<\/strong><\/li>\n<li>\u5355\u51fb\u6216\u5c06\u9f20\u6807\u60ac\u505c\u5728\u8981\u5e94\u7528\u4e2a\u6027\u5316\u503c\u7684\u8f93\u5165\u5b57\u6bb5\u4e0a\uff08\u4f8b\u5982\uff0c\u5bbd\u5ea6\u5c5e\u6027\u7684\u8f93\u5165\uff09<\/li>\n<li>\u70b9\u51fb\u7d2b\u8272\u201c<strong>\u70b9<\/strong>\u201d\u56fe\u6807\u2014\u2014\u8bf7\u8bb0\u4f4f\uff0c\u7d2b\u8272\u201c<strong>\u70b9<\/strong>\u201d\u56fe\u6807\u5c06\u4ec5\u51fa\u73b0\u5728\u5b57\u4f53\u3001\u5927\u5c0f\u548c\u989c\u8272\u5c5e\u6027\u4e0a<\/li>\n<li>\u70b9\u51fb <strong>\u98ce\u4fd7<\/strong> \u6807\u7b7e<\/li>\n<li>\u8f93\u5165 <strong>\u4e2a\u6027\u5316\u4ef7\u503c<\/strong> \u5728\u73b0\u573a\uff08\u4f8b\u5982\uff0cclamp\uff081rem\u30011.5rem\u30011.5rem\uff09\uff09 <\/li>\n<\/ol>\n<h6><strong>\u8bc4\u8bba\uff1a<\/strong> \u60a8\u4e0d\u80fd\u5bf9\u80cc\u666f\u5c5e\u6027\uff08\u4f8b\u5982\uff0c\u80cc\u666f\u989c\u8272\u3001\u80cc\u666f\u5927\u5c0f\u7b49\uff09\u6216\u4efb\u4f55\u5b50\u5c5e\u6027\u4f7f\u7528\u81ea\u5b9a\u4e49 CSS \u503c\uff08\u4f8b\u5982\uff0cbox-shadow\uff1a2px custom-value-offset 3px 4px #146EF5\uff09\u3002<\/h6>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u5c06\u4e2a\u6027\u5316\u503c\u5e94\u7528\u4e8e\u975e\u5b57\u4f53\u3001\u5927\u5c0f\u6216\u989c\u8272\u5c5e\u6027\uff0c\u5219\u53ef\u4ee5\u5148\u5c06\u4e2a\u6027\u5316\u503c\u9644\u52a0\u5230 <strong>\u6837\u5f0f\u9762\u677f<\/strong> &gt; <strong>\u81ea\u5b9a\u4e49\u5c5e\u6027<\/strong>. <\/p>\n<p>\u8981\u4ece Webflow \u517c\u5bb9\u5c5e\u6027\u4e2d\u5206\u79bb\u4e2a\u6027\u5316\u503c\uff0c\u8bf7\u70b9\u51fb\u8981\u5220\u9664\u7684\u4e2a\u6027\u5316\u503c\uff0c\u7136\u540e\u70b9\u51fb\u201c<strong>\u89e3\u9664\u94fe\u63a5<\/strong>\u201d\u56fe\u6807\u3002\u4e00\u65e6\u89e3\u9664\u94fe\u63a5\uff0c\u503c\u5c06\u6062\u590d\u4e3a Webflow \u4e2d\u7684\u9ed8\u8ba4\u503c\uff08\u4f8b\u5982\uff0c\u5bbd\u5ea6\u6062\u590d\u4e3a\u81ea\u52a8\uff0c\u4e0d\u900f\u660e\u5ea6\u6062\u590d\u4e3a 100% \u7b49\uff09\u3002 <\/p>\n<h2>\u5982\u4f55\u5728\u4e2a\u6027\u5316\u503c\u4e2d\u4f7f\u7528\u53d8\u91cf<\/h2>\n<p>\u60a8\u53ef\u4ee5\u5728\u4e2a\u6027\u5316\u4ef7\u503c\u89c2\u4e2d\u6574\u5408\u53d8\u91cf\u3002<\/p>\n<h6><strong>\u8bc4\u8bba\uff1a<\/strong> \u5982\u679c\u4e2a\u6027\u5316 CSS \u503c\u4e0e\u53d8\u91cf\u503c\u7c7b\u578b\u76f8\u540c\uff0c\u5219\u60a8\u53ea\u80fd\u5c06\u53d8\u91cf\u7528\u4f5c\u4e2a\u6027\u5316 CSS \u503c\uff08\u4f8b\u5982\uff0c\u60a8\u53ea\u80fd\u5c06\u989c\u8272\u53d8\u91cf\u8bbe\u7f6e\u4e3a\u63a5\u53d7\u989c\u8272\u503c\u7684\u4e2a\u6027\u5316\u5c5e\u6027\u7684\u503c\uff09\u3002 <\/h6>\n<p>\u8981\u5c06\u53d8\u91cf\u4e0e\u5c5e\u6027\u503c\u5173\u8054\uff1a<\/p>\n<ol start=\"1\" role=\"list\">\n<li>\u53d1\u8d77 <strong>\u53d8\u91cf\u9762\u677f<\/strong><\/li>\n<li>\u5c06\u9f20\u6807\u60ac\u505c\u5728\u60a8\u60f3\u8981\u7528\u4f5c\u4e2a\u6027\u5316 CSS \u503c\u7684\u53d8\u91cf\u4e0a <\/li>\n<li>\u70b9\u51fb\u8bbe\u7f6e\u201c<strong>\u9f7f\u8f6e<\/strong>\u201c \u56fe\u6807<\/li>\n<li>\u70b9\u51fb <strong>CSS<\/strong> \u5b57\u6bb5\u6765\u590d\u5236\u5176\u503c\uff08\u4f8b\u5982\uff0cvar(-webflow-blue)\uff09 <\/li>\n<li>\u9009\u62e9\u8981\u5e94\u7528\u4e2a\u6027\u5316\u5c5e\u6027\u7684\u5143\u7d20 <\/li>\n<li>\u524d\u8fdb\u81f3 <strong>\u6837\u5f0f\u9762\u677f<\/strong> &gt; <strong>\u81ea\u5b9a\u4e49\u5c5e\u6027<\/strong><\/li>\n<li>\u70b9\u51fb <strong>\u6dfb\u52a0<\/strong><\/li>\n<li>\u8f93\u5165 CSS \u5c5e\u6027 <strong>\u6307\u5b9a<\/strong> \u5728\u5b57\u6bb5\u4e2d\uff08\u4f8b\u5982\uff0c\u6587\u672c\u88c5\u9970\u989c\u8272\uff09<\/li>\n<li>\u7c98\u8d34\u60a8\u4ece <strong>CSS<\/strong> \u5b57\u6bb5\u4e2d\u7684 <strong>\u4ef7\u503c<\/strong> \u573a\u5730<\/li>\n<li>\u6253 <strong>\u8fdb\u5165<\/strong> \u5728\u4f60\u7684\u952e\u76d8\u4e0a<\/li>\n<\/ol>\n<h6><strong>\u8bc4\u8bba\uff1a<\/strong> \u5982\u679c\u60a8\u66f4\u6539\u4e86\u81ea\u5b9a\u4e49\u503c\u4e2d\u4f7f\u7528\u7684\u53d8\u91cf\u7684\u540d\u79f0\uff0c\u5219\u9700\u8981\u624b\u52a8\u66f4\u65b0\u81ea\u5b9a\u4e49\u503c\u4ee5\u8fdb\u884c\u5bf9\u9f50\u3002 <\/h6>\n<h2>\u5e38\u89c1\u95ee\u9898\u548c\u7591\u96be\u89e3\u7b54<\/h2>\n<h3>\u6211\u5e0c\u671b\u4f7f\u7528\u5e26\u6709\u4f9b\u5e94\u5546\u524d\u7f00\u7684\u4e2a\u6027\u5316 CSS \u5c5e\u6027\uff0c\u4f46\u81ea\u52a8\u5b8c\u6210\u5217\u8868\u4e2d\u6ca1\u6709\u8be5\u9009\u9879\u3002<\/h3>\n<p>\u6d4f\u89c8\u5668\u652f\u6301\u53d7\u9650\u7684 CSS \u5c5e\u6027\u548c\u5e26\u6709\u4f9b\u5e94\u5546\u524d\u7f00\uff08\u4f8b\u5982 -webkit\uff09\u7684\u5c5e\u6027\u4e0d\u652f\u6301\u4f5c\u4e3a\u4e2a\u6027\u5316\u5c5e\u6027\u3002 <\/p>\n<h3>\u6211\u5e0c\u671b\u5728\u5c5e\u6027\u4e0a\u5b9a\u4e49\u4e2a\u6027\u5316\u503c\uff0c\u4f46\u8be5\u5c5e\u6027\u4e0d\u5728\u81ea\u52a8\u5b8c\u6210\u5217\u8868\u4e2d\u3002<\/h3>\n<p>\u60a8\u5f53\u524d\u65e0\u6cd5\u5bf9\u4ee5\u4e0b\u5c5e\u6027\u5b9a\u4e49\u4e2a\u6027\u5316\u503c\uff1a <\/p>\n<ul role=\"list\">\n<li>\u80cc\u666f<\/li>\n<li>\u80cc\u666f\u9644\u4ef6<\/li>\n<li>\u80cc\u666f\u56fe<\/li>\n<li>\u80cc\u666f\u4f4d\u7f6e<\/li>\n<li>\u80cc\u666f\u91cd\u590d<\/li>\n<li>\u80cc\u666f\u5c3a\u5bf8<\/li>\n<li>\u5b57\u4f53\u53d8\u5316\u8bbe\u7f6e<\/li>\n<li>\u8fc7\u6e21<\/li>\n<li>\u8f6c\u6362\u5ef6\u8fdf<\/li>\n<li>\u8fc7\u6e21\u6301\u7eed\u65f6\u95f4<\/li>\n<li>\u8fc7\u6e21\u5c5e\u6027<\/li>\n<li>\u8f6c\u6362\u65f6\u5e8f\u51fd\u6570<\/li>\n<\/ul>\n<h3>\u6211\u7684\u4e2a\u6027\u5316\u503c\u5bfc\u81f4\u8f93\u5165\u9519\u8bef\u3002<\/h3>\n<p>\u8bf7\u786e\u4fdd\u60a8\u8bbe\u7f6e\u7684\u503c\u662f\u6709\u6548\u7684 CSS\uff0c\u5e76\u4e14\u53d7\u60a8\u9009\u62e9\u7684\u5c5e\u6027\u652f\u6301\u3002\u5c06\u9f20\u6807\u60ac\u505c\u5728\u5c5e\u6027\u540d\u79f0\u4e0a\uff0c\u7136\u540e\u70b9\u51fb <strong>\u5728 MDN \u4e0a\u67e5\u770b<\/strong> \u8bbf\u95ee MDN documentation \u5e76\u786e\u4fdd\u5c5e\u6027\u548c\u503c\u8bbe\u7f6e\u6b63\u786e\u3002 <\/p>\n<h3>\u6211\u7684\u4e2a\u6027\u5316\u5c5e\u6027\u548c\u503c\u6ca1\u6709\u53cd\u6620\u5728\u8bbe\u8ba1\u5e08\u753b\u5e03\u4e0a\u3002<\/h3>\n<p>\u5982\u679c\u5c5e\u6027\u548c\u503c\u914d\u7f6e\u6b63\u786e\u4f46\u672a\u53cd\u6620\u5728\u8bbe\u8ba1\u5668\u753b\u5e03\u4e0a\uff0c\u8bf7\u4ed4\u7ec6\u68c0\u67e5\u60a8\u7f51\u7ad9\u4e0a\u7684\u4efb\u4f55\u81ea\u5b9a\u4e49\u4ee3\u7801\u548c\/\u6216\u81ea\u5b9a\u4e49\u4ee3\u7801\u5d4c\u5165\u5143\u7d20\uff0c\u5e76\u6d88\u9664\u4efb\u4f55\u51b2\u7a81\u7684\u5c5e\u6027\u548c\u503c\u3002\u60a8\u8fd8\u5e94\u68c0\u67e5\u662f\u5426\u6709\u4efb\u4f55\u51b2\u7a81\u7684\u666e\u901a\u624b\u5199\u548c <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/Shorthand_properties\">\u7b80\u5199\u5c5e\u6027<\/a> \u2014 \u4f8b\u5982\uff0c\u5982\u679c\u4f60\u4f7f\u7528\u63a7\u4ef6\u5b9a\u4e49\u4e86 margin-top <strong>\u6837\u5f0f\u9762\u677f<\/strong> &gt; <strong>\u95f4\u8ddd<\/strong><em>\u548c<\/em> \u5728\u4ee5\u4e0b\u4f4d\u7f6e\u9644\u52a0\u7b80\u5199\u8fb9\u8ddd\u5c5e\u6027 <strong>\u6837\u5f0f\u9762\u677f<\/strong> &gt; <strong>\u81ea\u5b9a\u4e49\u5c5e\u6027<\/strong>\uff0c\u4e00\u4e2a\u503c\u53ef\u80fd\u4f18\u5148\u4e8e\u53e6\u4e00\u4e2a\u503c\u3002<\/p>\n<h3>\u6211\u7684\u4e2a\u6027\u5316\u5c5e\u6027\u548c\u503c\u672a\u5728\u5df2\u53d1\u5e03\u7684\u7f51\u7ad9\u4e0a\u5448\u73b0\u3002 <\/h3>\n<p>\u5982\u679c\u5c5e\u6027\u548c\u503c\u914d\u7f6e\u6b63\u786e\u4f46\u672a\u5728\u5df2\u53d1\u5e03\u7684\u7f51\u7ad9\u4e0a\u5448\u73b0\uff0c\u8bf7\u786e\u8ba4\u60a8\u6d4b\u8bd5\u7684\u6d4f\u89c8\u5668\u662f\u5426\u652f\u6301\u8be5\u5c5e\u6027\u548c\u503c\u3002\u60a8\u53ef\u4ee5 <a href=\"https:\/\/caniuse.com\/\">\u8bbf\u95ee\u6211\u53ef\u4ee5\u4f7f\u7528\u5417\uff1f\u7f51\u7ad9<\/a> \u5e76\u641c\u7d22 CSS \u5c5e\u6027\u6765\u786e\u5b9a\u5176\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u3002 <\/p>\n<p>\u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728\uff0c\u6216\u8005\u8981\u62a5\u544a\u4efb\u4f55\u5176\u4ed6\u7591\u8651\uff0c\u8bf7 <a href=\"https:\/\/support.webflow.com\/\">\u8054\u7cfb\u5ba2\u6237\u652f\u6301\u56e2\u961f<\/a> \u5e76\u9644\u6709\u91cd\u73b0\u8be5\u95ee\u9898\u7684\u6b65\u9aa4\u3002<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"\u5c06\u81ea\u5b9a\u4e49 CSS \u5c5e\u6027\u5e94\u7528\u4e8e\u60a8\u7684\u7c7b \u2014 \u2014 \u751a\u81f3\u662f\u6ca1\u6709\u539f\u751f\u6837\u5f0f\u9762\u677f\u63a7\u4ef6\u7684\u5c5e\u6027\u3002","protected":false},"author":2,"featured_media":5179,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-4281","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts\/4281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/comments?post=4281"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts\/4281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/media\/5248"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/media?parent=4281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/categories?post=4281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/tags?post=4281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}