{"id":259,"date":"2009-09-18T21:21:04","date_gmt":"2009-09-18T13:21:04","guid":{"rendered":"http:\/\/www.zhangxinxu.com\/wordpress\/?p=259"},"modified":"2023-10-09T14:16:07","modified_gmt":"2023-10-09T06:16:07","slug":"%e5%af%b9html%e4%b8%8ebody%e7%9a%84%e4%b8%80%e4%ba%9b%e7%a0%94%e7%a9%b6%e4%b8%8e%e7%90%86%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.zhangxinxu.com\/wordpress\/2009\/09\/%e5%af%b9html%e4%b8%8ebody%e7%9a%84%e4%b8%80%e4%ba%9b%e7%a0%94%e7%a9%b6%e4%b8%8e%e7%90%86%e8%a7%a3\/","title":{"rendered":"\u5bf9html\u4e0ebody\u7684\u4e00\u4e9b\u7814\u7a76\u4e0e\u7406\u89e3"},"content":{"rendered":"<p>by <a href=\"http:\/\/www.zhangxinxu.com\/\">zhangxinxu<\/a> from <a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a><br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=259\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=259<\/a><\/p>\n<h3>\u4e00\u3001\u5199\u5728\u524d\u9762\u7684<\/h3>\n<p>\u6700\u8fd1\u4e00\u76f4\u6784\u601d\u7740\u5199\u7bc7\u5173\u4e8e<code>&lt;html&gt;<\/code>\u6807\u7b7e\u7684\u6587\u7ae0\uff0c\u867d\u8bf4\u4e4b\u524d\u5904\u7406\u8fc7<code>&lt;html&gt;<\/code>\u6807\u7b7e\uff0c\u4e5f\u89e3\u51b3\u8fc7\u4e0d\u5c11\u68d8\u624b\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5bf9\u5176\u7406\u89e3\u8fd8\u4e0d\u662f\u5f88\u900f\u5f7b\uff0c\u5f88\u591a\u539f\u7406\u90fd\u662f\u81ea\u5df1\u63a8\u6d4b\u7684\u3002<\/p>\n<p>\u5728\u7f51\u4e0a\u67e5\u9605\u76f8\u5173\u8d44\u6599\u60f3\u6574\u5408\u4e00\u4e0b\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u53d1\u73b0\u6df1\u5165\u63a2\u8ba8<code>&lt;html&gt;<\/code>\uff0c\u4e0e<code>&lt;body&gt;<\/code>\u7684\u6587\u7ae0\u5f88\u5c11\uff0c\u53ea\u6709\u5728\u84dd\u8272\u7406\u60f3\u770b\u5230\u4e00\u7bc7\u201c\u4e00\u53f6\u5343\u9e1f\u201d\u7684\u8fd9\u7bc7\u201c<a href=\"http:\/\/www.blueidea.com\/tech\/site\/2006\/3130.asp\" target=\"_blank\">\u6b63\u786e\u8ba4\u8bc6html\u4e0ebody<\/a>\u201d\u6709\u70b9\u4ef7\u503c\uff0c\u5176\u4f59\u90fd\u6ca1\u6709\u4ec0\u4e48\u76f8\u5173\u7684\u597d\u6587\u7ae0\u3002<\/p>\n<p>\u800c\u8fd9\u91cc\uff0c\u6211\u8981\u8bb2\u8ff0\u7684\u4e0e\u4e0a\u9762\u7684\u4ea4\u96c6\u5e76\u4e0d\u591a\uff0c\u53ea\u8981\u662f\u8bb2\u8ff0\u4e00\u4e9b\u5173\u4e8e<code>&lt;html&gt;<\/code>\u4e0e<code>&lt;body&gt;<\/code>\u7684\u5404\u79cd\u8868\u73b0\uff0c\u4ee5\u53ca\u6211\u81ea\u5df1\u5bf9\u8fd9\u4e9b\u8868\u73b0\u7684\u5408\u7406\u7684\u89e3\u91ca\u548c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u8fc7\u53bb\u5904\u7406\u7c7b\u4f3c\u95ee\u9898\u7684\u7ecf\u9a8c\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u80fd\u591f\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<h3>\u4e8c\u3001\u5173\u4e8ehtml\u4e0ebody\u7684\u4e00\u4e9b\u8868\u73b0<\/h3>\n<h4>1.\u80cc\u666f\u8272<\/h4>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u6211\u4eeccss\u63a7\u5236\u7684\u6700\u9ad8\u8282\u70b9\u5c31\u662f<code>body<\/code>\uff0c\u4f8b\u5982\u8bbe\u7f6e\uff1a<\/p>\n<pre>body{background:#069;}<\/pre>\n<p>\u5219\u6d4f\u89c8\u5668\u754c\u9762\u5c31\u662f\u5b8c\u5168\u7684<code>#068<\/code>\u7684\u80cc\u666f\u8272\u3002\u8fd9\u91cc\u770b\u4e0a\u53bb\u662f<code>&lt;body&gt;<\/code>\u6807\u7b7e\u4e0b\u7684\u80cc\u666f\u8272\u8d77\u4f5c\u7528\u4e86\uff0c\u6211\u5230\u4e0d\u8fd9\u4e48\u8ba4\u4e3a\uff0c\u8fd9\u91cc\u4e0d\u662f<code>body<\/code>\u7684<code>background<\/code>\u8d77\u4f5c\u7528\uff0c\u800c\u662f<code>body<\/code>\u4f5c\u4e3a\u4e00\u4e2a\u6839\u8282\u70b9\u8d77\u4f5c\u7528\u4e86\uff0c<code>&lt;html&gt;<\/code>\u6807\u7b7e\u672a\u88ab\u6fc0\u6d3b\uff0c<code>body<\/code>\u62c5\u5f53\u7c7b\u4f3c\u4e8e\u6839\u8282\u70b9\u7684\u8282\u70b9\uff0c\u5176<code>background<\/code>\u80cc\u666f\u8272\u88ab\u6d4f\u89c8\u5668\u4fd8\u83b7\uff0c\u6d4f\u89c8\u5668\u754c\u9762\u80cc\u666f\u8272\u4e3a<code>background<\/code>\u7684\u80cc\u666f\u8272\uff0c\u4ee5\u4e0a\u662f\u6211\u7684\u63a8\u8bba\uff0c\u8fd9\u79cd\u63a8\u8bba\u4e0d\u662f\u6211\u51ed\u7a7a\u60f3\u8c61\u51fa\u6765\u7684\uff0c\u800c\u662f\u6709\u4e00\u5b9a\u7684\u6839\u636e\u7684\u3002\u770b\u4e0b\u9762\u7684\u4e00\u6bb5css\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>body{background:#069; margin:100px; border:30px solid #093;}<\/pre>\n<\/div>\n<p>\u610f\u601d\u5f88\u7b80\u660e\uff1a\u5916\u8fb9\u8ddd<code>100<\/code>\u50cf\u7d20\uff0c\u8fb9\u6846<code>30<\/code>\u50cf\u7d20\uff0c\u80cc\u666f\u8272<code>#069<\/code>\uff0c\u6309\u7167\u5bf9\u4e00\u822c\u6807\u7b7e\u7684\u7406\u89e3\uff0c<code>100<\/code>\u50cf\u7d20\u7684\u5916\u8fb9\u8ddd\u5e94\u8be5\u4e0d\u542b\u6709\u80cc\u666f\u8272\u7684\uff0c\u7136\u800c\u663e\u793a\u7684\u7ed3\u679c\u662f\uff08Firefox\u4e0b\u8868\u73b0\u4e0e\u6b64\u7c7b\u4f3c\uff09\uff1a<\/p>\n<div style=\"width: 510px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"IE6\u4e0bbody\u8bbe\u7f6ebackground\u989c\u8272\u540e\u7684\u8868\u73b0\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200909\/2009-09-18_153712.png\" alt=\"IE6\u4e0bbody\u8bbe\u7f6ebackground\u989c\u8272\u8fb9\u6846\u548c\u8fb9\u8ddd\u540e\u7684\u8868\u73b0\" width=\"500\" height=\"301\" \/><p class=\"wp-caption-text\">IE6\u4e0bbody\u8bbe\u7f6ebackground\u989c\u8272\u8fb9\u6846\u548c\u8fb9\u8ddd\u540e\u7684\u8868\u73b0<\/p><\/div>\n<p>\u8fd8\u6709\u4e00\u70b9\u53ef\u4ee5\u8bc1\u660e\u6211\u4e0a\u9762\u7684\u63a8\u8bba\uff0c\u5c31\u662f\u4e00\u65e6\u8bbe\u7f6e\u4e86<code>&lt;html&gt;<\/code>\u8282\u70b9\u7684<code>background<\/code>\u80cc\u666f\u8272\u4e4b\u540e\uff0c<code>&lt;body&gt;<\/code>\u7684\u80cc\u666f\u8272\u5c06\u5931\u6548\u3002\u4f8b\u5982\u4e0b\u9762\u7684\u7b80\u77ed\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>html{background:#999;}\r\nbody{background:#069; margin:100px; border:30px solid #093;}<\/pre>\n<\/div>\n<p>\u8ddf\u4e0a\u9762\u7684\u60f3\u6bd4\uff0c\u5c31\u662f\u6dfb\u52a0\u4e86<code>html<\/code>\u7684\u80cc\u666f\u8272\uff0c\u7ed3\u679c\uff08\u622a\u81eaIE6\uff0cFirefox\u6d4f\u89c8\u5668\u4e0b\u8868\u73b0\u4e00\u81f4\uff09\uff1a<\/p>\n<div style=\"width: 510px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"html\u6807\u7b7e\u8bbe\u7f6e\u80cc\u666f\u8272\u540e\u7684\u6837\u5f0f\u8868\u73b0\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200909\/2009-09-18_175421.png\" alt=\"html\u6807\u7b7e\u8bbe\u7f6e\u80cc\u666f\u8272\u540e\u7684\u6837\u5f0f\u8868\u73b0\" width=\"500\" height=\"301\" \/><p class=\"wp-caption-text\">html\u6807\u7b7e\u8bbe\u7f6e\u80cc\u666f\u8272\u540e\u7684\u6837\u5f0f\u8868\u73b0<\/p><\/div>\n<p>\u7ed3\u679c\u662f\u4ec0\u4e48\u5462\uff1f<code>&lt;body&gt;<\/code>\u6807\u7b7e\u7684\u6ee1\u5c4f\u7684\u80cc\u666f\u8272\u4e0d\u89c1\u4e86\uff0c\u201c\u5931\u6548\u201d\u4e86\u3002\u5176\u5b9e\uff0c\u5728\u6211\u770b\u6765\uff0c\u4e0d\u662f\u201c\u5931\u6548\u201d\uff0c\u662f\u751f\u6548\u4e86\u3002\u5f53<code>&lt;html&gt;<\/code>\u6807\u7b7e\u65e0\u80cc\u666f\u6837\u5f0f\u65f6\uff0c<code>&lt;body&gt;<\/code>\u7684\u80cc\u666f\u8272\u5176\u5b9e\u4e0d\u662f<code>&lt;body&gt;<\/code>\u6807\u7b7e\u7684\u80cc\u666f\u8272\uff0c\u800c\u662f\u6d4f\u89c8\u5668\u7684\u3002\u4e00\u65e6html\u6807\u7b7e\u542b\u6709\u80cc\u666f\u8272\uff0c\u5219<code>&lt;body&gt;<\/code>\u7684\u80cc\u666f\u8272\u53d8\u6210\u4e86\u6b63\u5e38\u7684<code>&lt;body&gt;<\/code>\u6807\u7b7e\uff08\u4e00\u4e2a\u5b9e\u5b9e\u5728\u5728\uff0c\u666e\u666e\u901a\u901a\u6807\u7b7e\uff09\u7684\u80cc\u666f\u8272\uff0c\u800c\u6b64\u65f6\u7684<code>&lt;html&gt;<\/code>\u6807\u7b7e\u6700\u9876\u7ea7\uff0c\u80cc\u666f\u8272\u88ab\u6d4f\u89c8\u5668\u83b7\u53d6\uff0c\u6210\u4e3a\u6d4f\u89c8\u5668\u7684\u80cc\u666f\u8272\u3002<\/p>\n<h4>2.margin\u652f\u6301<\/h4>\n<p>\u4ece\u4e0a\u9762\u7684\u5b9e\u4f8b\u53ef\u4ee5\u770b\u51fa\uff0c\u65e0\u8bba\u662fIE6\u6d4f\u89c8\u5668\uff0c\u8fd8\u662fFirefox\u6d4f\u89c8\u5668\uff0c<code>&lt;body&gt;<\/code>\u7684<code>margin<\/code>\u5c5e\u6027\u662f\u652f\u6301\u7684\uff0c<code>padding<\/code>\u4e5f\u662f\u5982\u6b64\uff0c\u90a3\u4e48\u5bf9\u4e8e<code>&lt;html&gt;<\/code>\u6807\u7b7e\u5462\u3002\u5982\u4e0b\u6d4b\u8bd5\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>html{background:#999;margin:100px; border:30px solid #093;}\r\nbody{background:#069; margin:100px; border:30px solid #093;}<\/pre>\n<\/div>\n<p>html\u6807\u7b7e\u4e5f\u589e\u52a0\u4e86margin\u95f4\u8ddd\u548c30\u50cf\u7d20\u7684\u8fb9\u6846\uff0c\u7ed3\u679c\u5982\u4e0b\uff1a<br \/>\nIE6\u4e0b\uff1a<\/p>\n<div style=\"width: 510px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"IE6\u6d4f\u89c8\u5668\u4e0bhtml\u5bf9margin\u4e0d\u654f\u611f\u4e0d\u652f\u6301\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200909\/2009-09-18_190950.png\" alt=\"IE6\u6d4f\u89c8\u5668\u4e0bhtml\u5bf9margin\u4e0d\u654f\u611f\u4e0d\u652f\u6301\" width=\"500\" height=\"301\" \/><p class=\"wp-caption-text\">IE6\u6d4f\u89c8\u5668\u4e0bhtml\u5bf9margin\u4e0d\u654f\u611f\u4e0d\u652f\u6301<\/p><\/div>\n<p>Firefox\u6d4f\u89c8\u5668\u4e0b\uff1a<\/p>\n<div style=\"width: 510px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"Firefox\u6d4f\u89c8\u5668\u4e0bhtml\u6807\u7b7e\u652f\u6301margin\u5916\u8fb9\u8ddd\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200909\/2009-09-18_191216.png\" alt=\"Firefox\u6d4f\u89c8\u5668\u4e0bhtml\u6807\u7b7e\u652f\u6301margin\u5916\u8fb9\u8ddd\" width=\"500\" height=\"301\" \/><p class=\"wp-caption-text\">Firefox\u6d4f\u89c8\u5668\u4e0bhtml\u6807\u7b7e\u652f\u6301margin\u5916\u8fb9\u8ddd<\/p><\/div>\n<p>\u8fd9\u662f\u7f29\u653e\u5230<code>500<\/code>\u50cf\u7d20\u5bbd\u7684\u56fe\u7247\uff0c\u4ed4\u7ec6\u770b\u8fd8\u662f\u4f1a\u53d1\u73b0IE6\u4e0b<code>margin<\/code>\u6ca1\u6709\u8d77\u4f5c\u7528\uff0c\u9876\u8fb9\u7684\u662f30\u50cf\u7d20\u7684\u8fb9\u6846\uff0cFirefox\u4e0b<code>margin<\/code>\u8d77\u4f5c\u7528\u4e86\uff0c\u53ef\u4ee5\u770b\u5230<code>30<\/code>\u50cf\u7d20\u7684\u8fb9\u6846\u5916\u90e8\u8fd8\u6709\u4e00\u6bb5\u95f4\u8ddd\u3002\u6b64\u56fe<code>&lt;html&gt;<\/code>\u6807\u7b7e\u80cc\u666f\u8272\u7684\u5168\u5c4f\u663e\u793a\u4e5f\u8fdb\u4e00\u6b65\u8bc1\u660e\u4e86\u6211\u4e0a\u9762\u6709\u5173\u80cc\u666f\u8272\u663e\u793a\u539f\u7406\u7684\u63a8\u8bba\u3002<\/p>\n<h4>3.\u5173\u4e8e\u6eda\u52a8\u6761<\/h4>\n<p>\u6253\u5f00\u4e00\u4e2a\u7a7a\u767d\u9875\u9762\uff0c\u89c2\u5bdf\u6d4f\u89c8\u5668\u53f3\u4fa7\uff0c\u4f1a\u53d1\u73b0IE\u6d4f\u89c8\u5668\u4f1a\u6709\u4e00\u6bb5\u6eda\u52a8\u6761\u7684\u69fd\u9053\uff0c\u800cFirefox\u6d4f\u89c8\u5668\u4e0b\u6ca1\u6709\u3002<\/p>\n<div style=\"width: 511px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"\u7a7a\u767d\u9875\u9762\u4e0bIE\u548cFirefox\u706b\u72d0\u6d4f\u89c8\u5668\u5de6\u4fa7\u7684\u6eda\u52a8\u6761\u4e0e\u5426\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200909\/2009-09-18_192701.png\" alt=\"\u7a7a\u767d\u9875\u9762\u4e0bIE\u548cFirefox\u706b\u72d0\u6d4f\u89c8\u5668\u5de6\u4fa7\u7684\u6eda\u52a8\u6761\u4e0e\u5426\" width=\"501\" height=\"270\" \/><p class=\"wp-caption-text\">\u7a7a\u767d\u9875\u9762\u4e0bIE\u548cFirefox\u706b\u72d0\u6d4f\u89c8\u5668\u5de6\u4fa7\u7684\u6eda\u52a8\u6761\u4e0e\u5426<\/p><\/div>\n<p>Firefox\u4e0b\u6ca1\u6709\u6eda\u52a8\u6761\uff0c\u6709\u65f6\u5019\u4f1a\u4ea7\u751f\u4f53\u9a8c\u4e0a\u7684\u4e00\u4e9b\u95ee\u9898\uff0c\u6bd4\u5982\uff1a\u5047\u8bbe\u4e00\u4e2a\u9875\u9762\u9ad8\u5ea6\u6709\u9650\uff0c\u65e0\u6eda\u52a8\u6761\uff0c\u5f53\u9f20\u6807\u79fb\u5230\u4e00\u4e2a\u5143\u7d20\u4e0a\uff0c\u8981\u663e\u793a\u4e00\u4e2a\u6d6e\u52a8\u5c42\uff0c\u4f46\u662f\u8fd9\u4e2a\u6d6e\u52a8\u5c42\u6709\u4e00\u5b9a\u7684\u9ad8\u5ea6\uff0c\u52a0\u4e0a\u9f20\u6807\u4f4d\u7f6e\u504f\u4f4e\uff0c\u4e00\u65e6\u6d6e\u52a8\u5c42\u51fa\u73b0\uff0c\u8bf4\u4e0d\u5b9a\u9875\u9762\u7684\u9ad8\u5ea6\u88ab\u6491\u9ad8\u5e76\u51fa\u73b0\u6eda\u52a8\u6761\uff0c\u8fd9\u662f\u5728Firefox\u6d4f\u89c8\u5668\u4e0b\u5c31\u4f1a\u4ea7\u751f\u9875\u9762\u7684\u6643\u52a8\uff0c\u539f\u56e0\u662f\u6eda\u52a8\u6761\u7684\u51fa\u73b0\u5bfc\u81f4\u9875\u9762\u7684\u5bbd\u5ea6\u51cf\u5c0f\uff0c\u5e03\u5c40\u53d1\u751f\u4e00\u4e9b\u504f\u79fb\uff0c\u800c\u8fd9\u79cd\u4fbf\u5b9c\u9020\u6210\u7684\u4f53\u9a8c\u662f\u4e0d\u597d\u7684\u3002\u5982\u4f55\u907f\u514d\u5462\uff1f\u5f88\u591a\u4eba\u4f1a\u60f3\u5230\u8bbe\u7f6e<\/p>\n<pre>body{overflow-y:scroll;}<\/pre>\n<p>Firefox\u4e0b\u662f\u51fa\u73b0\u4e86\u6eda\u52a8\u69fd\u4e86\uff0c\u4f46\u662fIE\u4e0b\u51fa\u73b0\u4e86\u4e24\u4e2a\u6eda\u52a8\u6761\uff0c\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" style=\"float:right;\" title=\"IE6\u4e0b\u7684\u53cc\u6eda\u52a8\u6761\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200909\/2009-09-18_194201.png\" alt=\"IE6\u4e0b\u7684\u53cc\u6eda\u52a8\u6761\" width=\"239\" height=\"195\" \/><\/p>\n<p>\u53ef\u80fd\u6709\u4eba\u4f1a\u60f3\u5230hack\uff0cno\uff0cno\uff0cno\uff0c\u5176\u5b9e\u4ed4\u7ec6\u60f3\u4e00\u60f3\uff0c\u95ee\u9898\u5f88\u7b80\u5355\u3002\u4e3a\u4ec0\u4e48IE\u4f1a\u4ea7\u751f\u53cc\u56fa\u5b9a\u6761\uff0c\u91cc\u9762\u90a3\u4e00\u4e2a\u80af\u5b9a\u662f<code>&lt;body&gt;<\/code>\u7684\uff0c\u90a3\u4e48\u5916\u9762\u7684\u90a3\u4e00\u4e2a\u5462\uff1f\u554a\uff0c\u6216\u8bb8\u60a8\u60f3\u5230\u4e86\uff0c<code>&lt;html&gt;<\/code>\u6807\u7b7e\u7684\uff0c\u5c31\u662f\u8bf4\u9ed8\u8ba4\u72b6\u6001\u4e0b\uff0cIE6\u4e0bhtml\u6709\u4e2ao<code>verflow:scroll<\/code>\u58f0\u660e\uff0c\u8bc1\u660e\u5f88\u7b80\u5355\uff0c\u60a8\u8bbe\u7f6e<code>&lt;html&gt;<\/code>\u6807\u7b7e<code>overflow:hidden<\/code>\u770b\u6eda\u52a8\u6761\u662f\u5426\u6ca1\u6709\u4e86\uff08\u6211\u8fd9\u91cc\u8bc1\u660e\u662f\u6ca1\u6709\u4e86\uff09\u3002\u6240\u4ee5\u5462\uff0c\u53ea\u8981\u5728css\u4e2d\u4e9b\u5199\u4e0a\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>html{overflow-y:scroll;}<\/pre>\n<\/div>\n<p>\u5c31\u53ef\u4ee5\u8ba9IE\u548cFirefox\uff08\u5305\u62ecchrome\uff09\u6d4f\u89c8\u5668\u9ed8\u8ba4\u4ea7\u751f\u6eda\u52a8\u6761\u7684\u6eda\u52a8\u69fd\u4e86\u3002<\/p>\n<h4>4.\u5173\u4e8ebackground\u7684fixed\u56fa\u5b9a\u5b9a\u4f4d<\/h4>\n<p>Firefox\u662f\u652f\u6301<code>background:fixed<\/code>\u5b9a\u4f4d\u7684\uff0cIE6\u53ea\u80fd\u8bf4\u662f\u534a\u652f\u6301\uff0c\u597d\u5427\uff0c\u8fd9\u4e48\u8bf4\u5427\uff0c\u53ef\u80fd\u4e0d\u592a\u4e25\u8c28\uff0c\u5c31\u662f\u80cc\u666f\u56fe\u7247\u56fa\u5b9a\u7684\u6548\u679c\u4f3c\u4e4e\u53ea\u5728\u6839\u7ed3\u70b9\u8d77\u4f5c\u7528\u3002\u4e3e\u4e2a\u5f88\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<br \/>\n\u5148\u770b\u8fd9\u6bb5css\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>body{background:url(..\/image\/404.png) no-repeat fixed center center;}\r\ndiv{height:2000px;}<\/pre>\n<\/div>\n<p>HTML\u90e8\u5206\u4e3a\uff1a<\/p>\n<pre>&lt;body&gt;&lt;div&gt;&lt;\/div&gt;&lt;\/body&gt;<\/pre>\n<p>\u5176\u7ed3\u679c\u662f\u65e0\u8bbaIE6\u8fd8\u662f\u706b\u72d0\u6d4f\u89c8\u5668\u4e0b\uff0c\u80cc\u666f\u56fe\u7247\u90fd\u662f\u56fa\u5b9a\u7684\u6b7b\u6b7b\u7684\uff0c\u4e0d\u9519\u3002\u4f46\u662f\uff0c\u4e00\u65e6<code>&lt;html&gt;<\/code>\u6807\u7b7e\u5e26\u7740<code>background<\/code>\u5c5e\u6027\u53c2\u5408\u8fdb\u6765\uff0c\u4e8b\u60c5\u5c31\u8981\u53d1\u751f\u8f6c\u53d8\u4e86\u3002\u95ee\u9898\u4ee3\u7801\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>html{background:white;}\r\nbody{background:url(..\/image\/404.png) no-repeat fixed center center;}\r\ndiv{height:2000px;}<\/pre>\n<\/div>\n<p>\u7ed3\u679cIE6\u4e0b\uff0c\u80cc\u666f\u4e0d\u56fa\u5b9a\u4e86\uff0c\u53ea\u770b\u5230\u80cc\u666f\u56fe\u7247\u968f\u7740\u6eda\u52a8\u6761\u4e0a\u4e0b\u79fb\u52a8\u800c\u79fb\u52a8\u3002<a class=\"a_link \" href=\"https:\/\/www.zhangxinxu.com\/study\/200909\/html-body-study-simple.html\" target=\"_blank\">\u6f14\u793a\u9875\u9762<\/a><\/p>\n<p>\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u5462\uff0c\u4e5f\u662f\u6709\u529e\u6cd5\u7684\uff0c\u5c31\u662f\u5c06<code>fixed<\/code>\u5c5e\u6027\u503c\u8f6c\u79fb\u5230<code>html<\/code>\u6807\u7b7e\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002\u5373\uff1a<\/p>\n<div class=\"zxx_code\">\n<pre>html{background:white url(..\/image\/404.png) no-repeat fixed center center;}\r\ndiv{height:2000px;}<\/pre>\n<\/div>\n<p>\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h4>5.\u5173\u4e8eheight:100%;<\/h4>\n<p>\u8981\u60f3\u9ad8\u5ea6\u767e\u5206\u6bd4\u8d77\u4f5c\u7528\uff0c\u4e00\u822c\u6765\u8bf4\uff0c\u8981\u6ee1\u8db3\u4e24\u4e2a\u6761\u4ef6\uff1a\u5176\u4e00\uff0c\u7236\u6807\u7b7e\u6709\u9ad8\u5ea6\u53ef\u5bfb\uff0c\u5c31\u662f\u5411\u4e0a\u904d\u5386\u7236\u6807\u7b7e\u8981\u627e\u5230\u4e00\u4e2a\u5b9a\u503c\u9ad8\u5ea6\uff08<code>body<\/code>\uff0c<code>html<\/code>\u53e6\u5916\u8ba8\u8bba\uff09\uff0c\u5982\u679c\u4e2d\u9014\u6709\u4e2a<code>height<\/code>\u4e3a<code>auto<\/code>\u6216\u662f\u6ca1\u6709\u8bbe\u7f6e<code>height<\/code>\u5c5e\u6027\uff0c\u5219\u9ad8\u5ea6\u767e\u5206\u6bd4\u4e0d\u8d77\u4f5c\u7528\uff1b\u5176\u4e8c\uff0c\u6807\u7b7e\u672c\u8eab\u7684\u5c5e\u6027\uff0c\u5982\u679c<code>inline<\/code>\u5c5e\u6027\u7684\u6807\u7b7e\uff0c\u5982\u679c\u6ca1\u6709\u6d6e\u52a8\uff0c<code>zoom<\/code>\uff0c\u6216\u662f\u7edd\u5bf9\u5b9a\u4f4d\u4e4b\u7c7b\u5c5e\u6027\u662f\u4e0d\u652f\u6301\u767e\u5206\u6bd4\u9ad8\u5ea6\u7684\uff0c<code>block<\/code>\u6216<code>inline-block<\/code>\u5c5e\u6027\u53ef\u4ee5\u8bf4\u662f\u9ad8\u5ea6\u767e\u5206\u6bd4\u8d77\u4f5c\u7528\u7684\u524d\u63d0\u6761\u4ef6\u4e4b\u4e00\u5427\u3002<\/p>\n<p>\u800c\u8fd9\u91cc\u8981\u8bb2\u7684\u662f\u5173\u4e8ebody\u548chtml\u7684\u9ad8\u5ea6\u767e\u5206\u6bd4\u663e\u793a\u7684\u3002<\/p>\n<p>\u9ed8\u8ba4\u72b6\u6001\u4e0b\uff0c<code>&lt;body&gt;<\/code>\u4e0d\u662f\u9ad8\u5ea6100%\u663e\u793a\u7684\uff0c\u4e0d\u8981\u770b<code>&lt;body&gt;<\/code>\u5b9a\u4e49<code>background<\/code>\u5c5e\u6027\u597d\u50cf<code>&lt;body&gt;<\/code>\u5c31\u662f\u6ee1\u5c4f\u663e\u793a\u7684\uff0c\u6b63\u5982\u4e0a\u9762\u6240\u63a8\u65ad\u7684\uff0c\u6b64\u80cc\u666f\u5df2\u975e<code>&lt;body&gt;<\/code>\u4e4b\u80cc\u666f\u3002\u7528\u4e0b\u9762\u8fd9\u4e2a\u4e00\u6d4b\u4fbf\u77e5\u3002<\/p>\n<pre>body{background:#039; border:50px solid #C00;}<\/pre>\n<p>\u770b\u8fb9\u6846\u8303\u56f4\u662f\u5426\u9ad8\u5ea6<code>100%<\/code>\u663e\u793a\uff0c\u7b54\u6848\u662f\u5426\u5b9a\u7684\u3002\u89c1\u4e0b\u56fe\uff08\u622a\u81eaIE6\uff0cFirefox\u6d4f\u89c8\u5668\u4e0b\u8868\u73b0\u4e00\u81f4\uff09\uff1a<\/p>\n<div style=\"width: 510px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"body\u9ed8\u8ba4\u9ad8\u5ea6\u662f\u4e0d100%\u663e\u793a\u7684\" src=\"https:\/\/image.zhangxinxu.com\/image\/blog\/200909\/2009-09-18_203335.png\" alt=\"body\u9ed8\u8ba4\u9ad8\u5ea6\u662f\u4e0d100%\u663e\u793a\u7684\" width=\"500\" height=\"301\" \/><p class=\"wp-caption-text\">body\u9ed8\u8ba4\u9ad8\u5ea6\u662f\u4e0d100%\u663e\u793a\u7684<\/p><\/div>\n<p>\u90a3\u4e48<code>&lt;body&gt;<\/code>\u662f\u5426\u652f\u6301<code>height:100%<\/code>\u5462\uff1f\u7ecf\u8fc7\u6211\u7684\u6d4b\u8bd5\uff0cIE6\u652f\u6301\uff0cFirefox\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u3002<\/p>\n<p>\u8981\u60f3\u8ba9Firefox\u6d4f\u89c8\u5668\u4e5f\u652f\u6301<code>&lt;body&gt;<\/code>\u7684<code>height:100%<\/code>\u662f\u7b80\u5355\u7684\uff0c\u5c31\u662f\u8bbe\u7f6e<code>&lt;html&gt;<\/code>\u6807\u7b7e<code>height:100%<\/code>\uff0c\u4e00\u65e6\u8bbe\u7f6e\u4e86<code>height:100%<\/code>\u5219\u65e0\u8bba\u54ea\u4e2a\u6d4f\u89c8\u5668\u4e0b<code>&lt;body&gt;<\/code>\u90fd\u652f\u6301<code>height:100%<\/code>\u4e86\uff0c\u800c<code>&lt;body&gt;<\/code>\u5185\u90e8\u7684\u5bb9\u5668\u4e5f\u53ef\u4ee5\u652f\u6301<code>height:100%<\/code>\u4e86\u3002<\/p>\n<p>\u524d\u6bb5\u65f6\u95f4\u770b\u5230\u767e\u5ea6\u7684\u4e00\u9053\u9762\u8bd5\u9898\uff0c\u8bf4\u4ec0\u4e48\u900f\u660e\u5c42\u65e0\u8bba\u6eda\u52a8\u4e0e\u5426\u90fd\u6ee1\u5c4f\u663e\u793a\uff0c\u5176\u5b9e\u5c31\u662f\u5bf9<code>&lt;html&gt;<\/code>\u548c<code>&lt;body&gt;<\/code>\u6807\u7b7e\u505a\u4e00\u756a\u624b\u811a\uff0c\u4e24\u8005\u9ad8\u5ea6<code>100%<\/code>\u663e\u793a\uff0c\u540c\u65f6\u6ea2\u51fa\u9690\u85cf\uff08<code>overflow:hidden<\/code>\uff09\uff0c\u7136\u540e\u7528\u4e00\u4e2a<code>&lt;div&gt;<\/code>\u9ad8\u5ea6<code>100%<\/code>\u663e\u793a\uff0c\u6ea2\u51fa\u6eda\u52a8\u3002\u800c\u8fd9\u4e2a\u900f\u660e\u5c42\u5c31\u4f7f\u7528\u7edd\u5bf9\u5b9a\u4f4d\u4e14\u4e0e\u8fd9\u4e2a<code>&lt;div&gt;<\/code>\u5e73\u7ea7\uff0c\u9ad8\u5bbd<code>100%<\/code>\u663e\u793a\uff0c\u5c31\u53ef\u4ee5\u4f7f\u5f97\u65e0\u8bba\u600e\u4e48\u6eda\u52a8\u8fd9\u4e2a\u900f\u660e\u8986\u76d6\u5c42\u90fd\u662f\u6ee1\u5c4f\u663e\u793a\u7684\u3002\u8fd9\u5176\u5b9e\u4e5f\u5c31\u89e3\u51b3IE6\u4e0b\u6d6e\u52a8\u5c42\u56fa\u5b9a\u5b9a\u4f4d\u7684\u7ecf\u5178\u65b9\u6cd5\u3002<\/p>\n<h4>6.\u5173\u4e8ehtml\uff0cbody\u7684css hack<\/h4>\n<p>\u4e0d\u77e5\u4e0d\u89c9\u8bb2\u4e86\u4e0d\u5c11\u4e86\uff0c\u8fd9\u5c31\u7b97\u6700\u540e\u4e00\u6761\u5427\u3002<\/p>\n<p>\u6211\u89c1\u8fc7\u7684\u6709\u5173<code>&lt;html&gt;<\/code>\u548c<code>&lt;body&gt;<\/code>\u6807\u7b7e\u7684hack\u6709\u8fd9\u4e48\u51e0\u4e2a\uff0c\u4e00\u4e2a\u662f<code>* html body<\/code>\uff0c\u4e00\u4e2a\u662f<code>*+html<\/code>\uff0c\u8fd8\u6709\u4e2a\u662f<code>html &gt; body<\/code>\uff0c\u4ee5\u53ca<code>body:nth-of-type(1)<\/code>\u3002\u524d\u8005\u662f\u7ecf\u5178\u7684IE6 css hack\uff0c\u5728\u5f53\u524d\u4e3b\u6d41\u6d4f\u89c8\u5668\u4e2d\uff0c\u5c31IE6\u652f\u6301\uff0c\u5176\u542b\u4e49\u662f\u6307\u5728<code>&lt;html&gt;<\/code>\u6807\u7b7e\u5916\u8fd8\u6709\u4e00\u4e2a\u9690\u85cf\u7684\u5e7d\u7075\u6807\u7b7e\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\u4ec0\u4e48\u4e1c\u897f\uff0c\u53cd\u6b63IE6\u8ba4\u5f97\u5b83\u5c31\u884c\u4e86\u3002<code>*+html<\/code>\u636e\u8bf4\u53ea\u6709IE7\u8ba4\u5f97\u5b83\u3002<code>html &gt; body<\/code>\u4e5f\u636e\u8bf4\u5c31IE7\u8ba4\u8bc6\u5b83\uff0c\u800c<code>body:nth-of-type(1)<\/code>\u662f\u9488\u5bf9chrome\u6d4f\u89c8\u5668\u7684hack\uff0c\u610f\u601d\u662f\u8bf4\u67d0\u67d0\u6807\u7b7e\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u56e0\u4e3a\u4e00\u4e2a\u9875\u9762\u5c31\u53ea\u6709\u4e00\u4e2a<code>&lt;body&gt;<\/code>\u6807\u7b7e\uff0c\u6240\u4ee5\u8fd9\u4e2a\u80af\u5b9a\u4f1a\u6210\u7acb\u7684\uff0c\u6240\u4ee5<code>body:nth-of-type(1) div{height:1px;}<\/code>\u8fd9\u4e2ahack\u5c31\u4f1a\u8d77\u4f5c\u7528\u4e86\u3002<\/p>\n<h4>7. \u5173\u4e8ebody overflow\u9690\u85cf \uff08\u65b0\u589e\u4e0e2019-03-01\uff09<\/h4>\n<p>\u5355\u7eaf\u5982\u4e0bbody overflow\u662f\u65e0\u6cd5\u9690\u85cf\u9ad8\u5ea6\u4e0d\u8db3\u4e00\u5c4f\u7684\u5143\u7d20\u7684\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>body {\r\n    height: 30px;\r\n    overflow: hidden;\r\n}\r\nbody > div {\r\n    height: 300px;\r\n    background-color: #cd0000;\r\n}<\/pre>\n<p>\u6b64\u65f6body\u7684\u5b50\u5143\u7d20div\u4f9d\u7136\u4fdd\u6301300px\u9ad8\u5ea6\u7684\u663e\u793a\uff0c\u5982\u679c\u60f3\u8981\u9690\u85cf\uff0c\u9700\u8981\u8bbe\u7f6ehtml\u7684<code>overflow:hidden<\/code>\u3002<\/p>\n<p>\u6b64\u73b0\u8c61\u51fa\u73b0\u539f\u56e0\u548c\u80cc\u666f\u8272\u7c7b\u4f3c\u3002<\/p>\n<ol>\n<li>\u5982\u679chtml\u5143\u7d20\u6ca1\u6709\u8bbe\u7f6eoverflow\u5c5e\u6027\uff0c\u90a3\u4e48body\u5143\u7d20\u7684\u8bbe\u7f6e\u7b49\u540c\u4e8e\u8bbe\u7f6e\u5728html\u5143\u7d20\u4e0a\uff0c\u5426\u5219\uff0cbody\u5143\u7d20\u7684overflow\u5c5e\u6027\u6309\u7167\u666e\u901a\u5143\u7d20\u6e32\u67d3\u3002<\/li>\n<li>html\u5143\u7d20\u7684overflow\u526a\u88c1\u9ad8\u5ea6\u81f3\u5c11\u4e00\u4e2a\u5c4f\u5e55\u9ad8\u5ea6\u3002<\/li>\n<\/ol>\n<p>\u6240\u4ee5\uff0c\u4e0a\u9762CSS\u4ee3\u7801\uff0c\u53ea\u9700\u8981html\u5143\u7d20\u8bbe\u7f6e\u4efb\u610f\u4e0d\u662f visible \u503c\u7684overflow\u5c5e\u6027\uff0c\u90fd\u80fd\u89e6\u53d1body\u5143\u7d20\u526a\u88c1div\uff0c\u54ea\u6015html\u5143\u7d20\u7684\u9ad8\u5ea6\u5f88\u9ad8\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>html {\r\n    height: 400px;\r\n    overflow: scroll;\r\n}<\/pre>\n<p>\u6b64\u65f6body overflow\u751f\u6548\u3002<\/p>\n<p>\u4e8e\u662f\uff0c\u4e0b\u9762\u7684\u73b0\u8c61\u4e5f\u5c31\u7406\u89e3\u4e86\uff0c\u5373\u5982\u679cdiv\u9ad8\u5ea6\u5f88\u9ad8\uff0c\u4f8b\u59823000px\uff0c\u53ef\u4ee5\u770b\u5230div\u5143\u7d20\u5728\u4e00\u5c4f\u9ad8\u5ea6\u7684\u5730\u65b9\u9690\u85cf\u4e86\uff1a<\/p>\n<pre>body > div {\r\n    height: 3000px;\r\n    background-color: #cd0000;\r\n}<\/pre>\n<p>\u8fd9\u662f\u56e0\u4e3ahtml\u5143\u7d20\u7684overflow\u751f\u6548\u9ad8\u5ea6\u81f3\u5c111\u5c4f\u3002<\/p>\n<h3>\u4e09\u3001\u6700\u540e\u7684\u7ed3\u8bed<\/h3>\n<p>\u6280\u672f\u65e0\u6b62\u5883\uff0ccss\u8fd9\u4e1c\u897f\u771f\u662f\u5f88\u535a\u5927\u7cbe\u6df1\uff0c\u5373\u4f7f\u6211\u952e\u76d8\u6572\u4e86\u4e0d\u77e5\u591a\u5c11\u4e2a\u5c0f\u65f6\uff0c\u8fd8\u662f\u6709\u4e9b\u8bdd\u6ca1\u6709\u8bf4\u5b8c\u3002\u8981\u662f\u518d\u7ed3\u5408JavaScript\uff0cdemo\u5c55\u5f00\u8bf4\u7684\u8bdd\uff0c\u53ef\u80fd\u8981\u901a\u5bb5\u624d\u80fd\u8bf4\u5b8c\u3002\u8fd9\u91cc\u5c31\u5148\u8bb2\u8fd9\u4e9b\uff0c\u70b9\u5230\u4e3a\u6b62\u3002\u5173\u4e8ehtml\u548cbody\u8fd9\u4e24\u4e2a\u6807\u7b7e\u91cc\u9762\u8574\u542b\u7684\u77e5\u8bc6\u662f\u5f88\u591a\u7684\uff0c\u6211\u8fd9\u91cc\u5168\u5f53\u629b\u7816\u5f15\u7389\uff0c\u66f4\u591a\u7684\u5185\u5bb9\u8fd8\u9700\u8981\u60a8\u53bb\u7814\u7a76\u53bb\u63a2\u7d22\u3002<\/p>\n<p>\u672c\u6587\u4e3a\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u6765\u81ea<a href=\"http:\/\/www.zhangxinxu.com\/\">\u5f20\u946b\u65ed-\u946b\u7a7a\u95f4-\u946b\u751f\u6d3b<\/a>[<a href=\"http:\/\/www.zhangxinxu.com\/\">http:\/\/www.zhangxinxu.com<\/a>]<br \/>\n\u672c\u6587\u5730\u5740\uff1a<a href=\"http:\/\/www.zhangxinxu.com\/wordpress\/?p=259\">http:\/\/www.zhangxinxu.com\/wordpress\/?p=259<\/a><\/p>\n<p>\uff08\u672c\u7bc7\u5b8c\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/image.zhangxinxu.com\/image\/blog\/200909\/html-body-20090918.png\" \/><br \/>\n\u6700\u8fd1\u4e00\u76f4\u6784\u601d\u7740\u5199\u7bc7\u5173\u4e8ehtml\u6807\u7b7e\u7684\u6587\u7ae0\uff0c\u867d\u8bf4\u4e4b\u524d\u5904\u7406\u8fc7html\u6807\u7b7e\uff0c\u4e5f\u89e3\u51b3\u8fc7\u4e0d\u5c11\u68d8\u624b\u7684\u95ee\u9898\uff0c\u4f46\u662f\u5bf9\u5176\u7406\u89e3\u8fd8\u4e0d\u662f\u5f88\u900f\u5f7b\uff0c\u5f88\u591a\u539f\u7406\u90fd\u662f\u81ea\u5df1\u63a8\u6d4b\u7684\u3002<br \/>\n\u5728\u7f51\u4e0a\u67e5\u9605\u76f8\u5173\u8d44\u6599\u60f3\u6574\u5408\u4e00\u4e0b\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u53d1\u73b0\u6df1\u5165\u63a2\u8ba8html\uff0c\u4e0ebody\u7684\u6587\u7ae0\u5f88\u5c11\uff0c\u53ea\u6709\u5728\u84dd\u8272\u7406\u60f3\u770b\u5230\u4e00\u7bc7\u201c\u4e00\u53f6\u5343\u9e1f\u201d\u7684\u8fd9\u7bc7\u201c<a class=\"a_link\" target=\"_blank\" href=\"http:\/\/www.blueidea.com\/tech\/site\/2006\/3130.asp\">\u6b63\u786e\u8ba4\u8bc6html\u4e0ebody<\/a>\u201d\u6709\u70b9\u4ef7\u503c\uff0c\u5176\u4f59\u90fd\u6ca1\u6709\u4ec0\u4e48\u76f8\u5173\u7684\u597d\u6587\u7ae0\u3002<br \/>\n\u800c\u8fd9\u91cc\uff0c\u6211\u8981\u8bb2\u8ff0\u7684\u4e0e\u4e0a\u9762\u7684\u4ea4\u96c6\u5e76\u4e0d\u591a\uff0c\u4e3b\u8981\u662f\u8bb2\u8ff0\u4e00\u4e9b\u5173\u4e8ehtml\u4e0ebody\u7684\u5404\u79cd\u8868\u73b0\uff0c\u6211\u81ea\u5df1\u7684\u4e00\u4e9b\u89e3\u91ca\uff0c\u4ee5\u53ca\u5904\u7406\u76f8\u5173\u95ee\u9898\u7684\u4e9b\u7ecf\u9a8c\uff0c\u5f88\u591a\u5e94\u8be5\u662f\u7f51\u4e0a\u5f88\u5c11\u63d0\u53ca\u7684\u4e1c\u897f\uff0c\u5185\u5bb9\u4e0d\u7b97\u6df1\u5965\uff0c\u6211\u5c3d\u91cf\u622a\u56fe\u5c55\u793a\uff0c\u8868\u8ff0\u6e05\u6670\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u80fd\u591f\u6709\u6240\u5e2e\u52a9\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":[163,161,156,167,9,140,162,165,166,22],"_links":{"self":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/259"}],"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=259"}],"version-history":[{"count":0,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhangxinxu.com\/wordpress\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}