{"id":238487,"date":"2023-12-26T08:25:19","date_gmt":"2023-12-26T00:25:19","guid":{"rendered":"https:\/\/www.idc.net\/help\/238487\/"},"modified":"2023-12-26T08:25:19","modified_gmt":"2023-12-26T00:25:19","slug":"html%e4%bb%a3%e7%a0%81-body-%e4%b8%bb%e4%bd%93%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/238487\/","title":{"rendered":"Html\u4ee3\u7801: body &#8211; \u4e3b\u4f53\u5143\u7d20"},"content":{"rendered":"<p><title id=\"html%e4%bb%a3%e7%a0%81-body-%e4%b8%bb%e4%bd%93%e5%85%83%e7%b4%a0-QlEjFyogHU\">Html\u4ee3\u7801: body - \u4e3b\u4f53\u5143\u7d20<\/title><\/p>\n<h1 id=\"html%e4%bb%a3%e7%a0%81-body-%e4%b8%bb%e4%bd%93%e5%85%83%e7%b4%a0-QlEjFyogHU\">Html\u4ee3\u7801: body - \u4e3b\u4f53\u5143\u7d20<\/h1>\n<p>\u5728HTML\u4e2d\uff0c<code>&lt;body&gt;<\/code>\u5143\u7d20\u662f\u7f51\u9875\u7684\u4e3b\u4f53\u90e8\u5206\uff0c\u5305\u542b\u4e86\u6240\u6709\u53ef\u89c1\u7684\u5185\u5bb9\uff0c\u5982\u6587\u672c\u3001\u56fe\u50cf\u3001\u94fe\u63a5\u7b49\u3002\u5b83\u662fHTML\u6587\u6863\u7684\u4e00\u4e2a\u5fc5\u9700\u5143\u7d20\uff0c\u7528\u4e8e\u5b9a\u4e49\u7f51\u9875\u7684\u4e3b\u8981\u5185\u5bb9\u3002<\/p>\n<h2 id=\"%e8%af%ad%e6%b3%95-QlEjFyogHU\">\u8bed\u6cd5<\/h2>\n<p><code>&lt;body&gt;<\/code>\u5143\u7d20\u4f4d\u4e8eHTML\u6587\u6863\u7684<code>&lt;html&gt;<\/code>\u6807\u7b7e\u5185\uff0c\u7528\u4e8e\u5305\u88f9\u7f51\u9875\u7684\u4e3b\u8981\u5185\u5bb9\u3002\u5b83\u7684\u57fa\u672c\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre><code>&lt;body&gt;\n  \u7f51\u9875\u5185\u5bb9\n&lt;\/body&gt;\n<\/code><\/pre>\n<p>\u5728<code>&lt;body&gt;<\/code>\u5143\u7d20\u4e2d\uff0c\u53ef\u4ee5\u5305\u542b\u5404\u79cdHTML\u6807\u7b7e\uff0c\u5982\u6807\u9898\u3001\u6bb5\u843d\u3001\u94fe\u63a5\u3001\u56fe\u50cf\u7b49\uff0c\u7528\u4e8e\u7ec4\u7ec7\u548c\u5c55\u793a\u7f51\u9875\u7684\u5185\u5bb9\u3002<\/p>\n<h2 id=\"%e7%a4%ba%e4%be%8b-QlEjFyogHU\">\u793a\u4f8b<\/h2>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684HTML\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528<code>&lt;body&gt;<\/code>\u5143\u7d20\u6765\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7f51\u9875\uff1a<\/p>\n<pre><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"zh-CN\"&gt;\n&lt;head&gt;\n  &lt;meta charset=\"UTF-8\"&gt;\n  &lt;title&gt;\u6211\u7684\u7f51\u9875&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n  &lt;h1&gt;\u6b22\u8fce\u6765\u5230\u6211\u7684\u7f51\u9875\uff01&lt;\/h1&gt;\n  &lt;p&gt;\u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\u7f51\u9875\uff0c\u7528\u4e8e\u6f14\u793a&lt;code&gt;&lt;body&gt;&lt;\/code&gt;\u5143\u7d20\u7684\u4f7f\u7528\u3002&lt;\/p&gt;\n  &lt;a href=\"https:\/\/www.example.com\"&gt;\u70b9\u51fb\u8fd9\u91cc&lt;\/a&gt;\u8bbf\u95ee\u4e00\u4e2a\u94fe\u63a5\u3002\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c<code>&lt;body&gt;<\/code>\u5143\u7d20\u5305\u542b\u4e86\u4e00\u4e2a<code>&lt;h1&gt;<\/code>\u6807\u9898\u548c\u4e00\u4e2a<code>&lt;p&gt;<\/code>\u6bb5\u843d\uff0c\u4ee5\u53ca\u4e00\u4e2a<code>&lt;a&gt;<\/code>\u94fe\u63a5\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9-QlEjFyogHU\">\u6ce8\u610f\u4e8b\u9879<\/h2>\n<p>\u5728\u4f7f\u7528<code>&lt;body&gt;<\/code>\u5143\u7d20\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<ul>\n<li>\u6bcf\u4e2aHTML\u6587\u6863\u53ea\u80fd\u6709\u4e00\u4e2a<code>&lt;body&gt;<\/code>\u5143\u7d20\u3002<\/li>\n<li>\u53ef\u4ee5\u5728<code>&lt;body&gt;<\/code>\u5143\u7d20\u4e2d\u5d4c\u5957\u5176\u4ed6HTML\u5143\u7d20\uff0c\u4ee5\u521b\u5efa\u66f4\u590d\u6742\u7684\u7f51\u9875\u5e03\u5c40\u3002<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528CSS\u6837\u5f0f\u6765\u7f8e\u5316<code>&lt;body&gt;<\/code>\u5143\u7d20\u4e2d\u7684\u5185\u5bb9\uff0c\u5982\u8bbe\u7f6e\u80cc\u666f\u989c\u8272\u3001\u5b57\u4f53\u6837\u5f0f\u7b49\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%bb%93%e8%ae%ba-QlEjFyogHU\">\u7ed3\u8bba<\/h2>\n<p><code>&lt;body&gt;<\/code>\u5143\u7d20\u662fHTML\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u5143\u7d20\uff0c\u7528\u4e8e\u5b9a\u4e49\u7f51\u9875\u7684\u4e3b\u8981\u5185\u5bb9\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528<code>&lt;body&gt;<\/code>\u5143\u7d20\uff0c\u53ef\u4ee5\u521b\u5efa\u51fa\u7f8e\u89c2\u3001\u7ed3\u6784\u6e05\u6670\u7684\u7f51\u9875\u3002<\/p>\n<h3 id=\"%e9%a6%99%e6%b8%af%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%a6%96%e9%80%89%e5%90%8e%e6%b5%aa%e4%ba%91-QlEjFyogHU\">\u9999\u6e2f\u670d\u52a1\u5668\u9996\u9009\u540e\u6d6a\u4e91<\/h3>\n<p>\u540e\u6d6a\u4e91\u662f\u4e00\u5bb6\u4e13\u4e1a\u7684\u4e91\u8ba1\u7b97\u516c\u53f8\uff0c\u63d0\u4f9b\u9ad8\u8d28\u91cf\u7684\u9999\u6e2f\u670d\u52a1\u5668\u670d\u52a1\u3002\u65e0\u8bba\u60a8\u662f\u4e2a\u4eba\u7528\u6237\u8fd8\u662f\u4f01\u4e1a\u7528\u6237\uff0c\u540e\u6d6a\u4e91\u90fd\u80fd\u4e3a\u60a8\u63d0\u4f9b\u7a33\u5b9a\u53ef\u9760\u7684\u9999\u6e2f\u670d\u52a1\u5668\u89e3\u51b3\u65b9\u6848\u3002\u70b9\u51fb<a href=\"https:\/\/idc.net\">\u8fd9\u91cc<\/a>\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u540e\u6d6a\u4e91\u7684\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Html\u4ee3\u7801: body - \u4e3b\u4f53\u5143\u7d20 Html\u4ee3\u7801: body - \u4e3b\u4f53\u5143\u7d20 \u5728HTML\u4e2d\uff0c&lt;body [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197854],"tags":[],"class_list":["post-238487","post","type-post","status-publish","format-standard","hentry","category-html"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/238487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=238487"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/238487\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=238487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=238487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=238487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}