{"id":860,"date":"2025-04-18T06:00:19","date_gmt":"2025-04-17T22:00:19","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/"},"modified":"2025-04-18T06:00:19","modified_gmt":"2025-04-17T22:00:19","slug":"%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/","title":{"rendered":"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"htmledit_views\" id=\"content_views\">\n<p>\n   <strong><br \/>\n    \u76ee\u5f55<br \/>\n   <\/strong>\n  <\/p>\n<p id=\"1%E3%80%81%E6%B8%B8%E6%88%8F%E8%AE%BE%E8%AE%A1%E6%80%9D%E8%B7%AF-toc\">\n   <a href=\"http:\/\/www.mark-to-win.com\/tutorial\/176030.html#1%E3%80%81%E6%B8%B8%E6%88%8F%E8%AE%BE%E8%AE%A1%E6%80%9D%E8%B7%AF\" rel=\"nofollow\" title=\"1\u3001\u6e38\u620f\u8bbe\u8ba1\u601d\u8def\"><br \/>\n    1\u3001\u6e38\u620f\u8bbe\u8ba1\u601d\u8def<br \/>\n   <\/a>\n  <\/p>\n<p id=\"\">\n   <a href=\"http:\/\/www.mark-to-win.com\/tutorial\/176030.html#t0\" rel=\"nofollow\" title=\"2\u3001\u98de\u673a\u5c04\u51fb\u6e38\u620f\u8bbe\u8ba1\u6b65\u9aa4\"><br \/>\n    2\u3001\u98de\u673a\u5c04\u51fb\u6e38\u620f\u8bbe\u8ba1\u6b65\u9aa4<br \/>\n   <\/a>\n  <\/p>\n<hr id=\"hr-toc\"\/>\n<p>\n   \u672c\u7bc7\u535a\u6587\u5c06\u5206\u4eab\u4e00\u7bc7\u57fa\u4e8eHTML\u7684\u7b80\u5355\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f\uff0c\u4e0b\u65b9\u662f\u73a9\u5bb6\u98de\u673a\uff0c\u53ef\u6309\u7a7a\u683c\u952e\u80fd\u4e0d\u65ad\u5730\u53d1\u5c04\u5b50\u5f39\uff0c\u4e0a\u65b9\u662f\u968f\u673a\u51fa\u73b0\u7684\u654c\u65b9\u98de\u673a\u3002\u73a9\u5bb6\u53ef\u4ee5\u901a\u8fc7\u952e\u76d8\u7684\u65b9\u5411\u952e\u63a7\u5236\u81ea\u5df1\u98de\u673a\u7684\u79fb\u52a8\uff0c\u5f53\u73a9\u5bb6\u98de\u673a\u7684\u5b50\u5f39\u78b0\u5230\u654c\u65b9\u98de\u673a\u65f6\uff0c\u654c\u65b9\u98de\u673a\u51fa\u73b0\u7206\u70b8\u6548\u679c\u3002\u6e38\u620f\u8fd0\u884c\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a\n  <\/p>\n<\/p>\n<h2 id=\"1%E3%80%81%E6%B8%B8%E6%88%8F%E8%AE%BE%E8%AE%A1%E6%80%9D%E8%B7%AF\">\n   <a name=\"t1\"><br \/>\n   <\/a><br \/>\n   <strong><br \/>\n    1\u3001\u6e38\u620f\u8bbe\u8ba1\u601d\u8def<br \/>\n   <\/strong><br \/>\n  <\/h2>\n<p>\n   <strong><br \/>\n    1\u3001\u6e38\u620f\u7d20\u6750<br \/>\n   <\/strong>\n  <\/p>\n<p>\n   \u6e38\u620f\u7a0b\u5e8f\u4e2d\u7528\u5230\u654c\u65b9\u98de\u673a\u3001\u6211\u65b9\u98de\u673a\u3001\u5b50\u5f39\u3001\u654c\u673a\u88ab\u51fb\u4e2d\u7684\u7206\u70b8\u56fe\u7247\u7b49\uff0c\u5206\u522b\u4f7f\u7528\u5982\u4e0b\u56fe\u6240\u793a\uff1a\n  <\/p>\n<\/p>\n<\/p>\n<p>\n   <strong><br \/>\n    2\u3001\u5730\u56fe\u6eda\u52a8\u7684\u539f\u7406\u5b9e\u73b0<br \/>\n   <\/strong>\n  <\/p>\n<p>\n   \u4e3e\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5927\u5bb6\u90fd\u5750\u8fc7\u706b\u8f66\u5427\uff0c\u5750\u706b\u8f66\u7684\u65f6\u5019\u90fd\u9047\u5230\u8fc7\u81ea\u5df1\u7684\u706b\u8f66\u660e\u660e\u662f\u505c\u6b62\u7684\uff0c\u4f46\u662f\u65c1\u8fb9\u94c1\u8f68\u7684\u706b\u8f66\u5728\u5411\u540e\u884c\u9a76\uff0c\u4f1a\u6709\u4e00\u79cd\u9519\u89c9\u611f\u89c9\u81ea\u5df1\u7684\u706b\u8f66\u662f\u5728\u5411\u524d\u884c\u9a76\u3002\u98de\u884c\u5c04\u51fb\u7c7b\u6e38\u620f\u7684\u5730\u56fe\u539f\u7406\u548c\u8fd9\u4e2a\u5b8c\u5168\u4e00\u6837\u3002\u73a9\u5bb6\u5728\u63a7\u5236\u98de\u673a\u5728\u5c4f\u5e55\u4e2d\u98de\u884c\u7684\u4f4d\u7f6e\uff0c\u80cc\u666f\u56fe\u7247\u4e00\u76f4\u5411\u540e\u6eda\u52a8\u4ece\u800c\u7ed9\u73a9\u5bb6\u4e00\u79cd\u9519\u89c9\u81ea\u5df1\u63a7\u5236\u7684\u98de\u673a\u5728\u5411\u524d\u98de\u884c\u3002\n  <\/p>\n<\/p>\n<p>\n   \u5982\u4e0b\u56fe\u6240\u793a\u5730\u56fe\u56fe\u7247\u5728\u5c4f\u5e55\u80cc\u540e\u4ea4\u66ff\u6eda\u52a8\uff0c\u8fd9\u6837\u5c31\u4f1a\u7ed9\u73a9\u5bb6\u4ea7\u751f\u81ea\u5df1\u63a7\u5236\u7684\u98de\u673a\u5728\u5411\u524d\u79fb\u52a8\u7684\u9519\u89c9\u3002\n  <\/p>\n<\/p>\n<p>\n   \u5730\u56fe\u6eda\u52a8\u7684\u76f8\u5173\u4ee3\u7801\uff0c\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      function updateBg() {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      \/** \u66f4\u65b0\u6e38\u620f\u80cc\u666f\u56fe\u7247\u5b9e\u73b0\u5411\u4e0b\u6eda\u52a8\u6548\u679c**\/<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      mBitposY0 += 5;\/\/\u7b2c\u4e00\u5f20\u5730\u56femap_0.png\u7684\u7eb5\u5750\u6807\u4e0b\u79fb5\u4e2a\u50cf\u7d20<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      mBitposY1 += 5;\/\/\u7b2c\u4e8c\u5f20\u5730\u56femap_1.png\u7684\u7eb5\u5750\u6807\u4e0b\u79fb5\u4e2a\u50cf\u7d20<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      if (mBitposY0 == mScreenHeight) { \/\/\u8d85\u8fc7\u6e38\u620f\u5c4f\u5e55\u7684\u5e95\u8fb9<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      mBitposY0 = -mScreenHeight;\/\/\u56de\u5230\u5c4f\u5e55\u4e0a\u65b9<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      }<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      if (mBitposY1 == mScreenHeight) {\/\/\u8d85\u8fc7\u6e38\u620f\u5c4f\u5e55\u7684\u5e95\u8fb9<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      mBitposY1 = -mScreenHeight; \/\/\u56de\u5230\u5c4f\u5e55\u4e0a\u65b9<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      }<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      }<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   <strong><br \/>\n    3\u3001\u98de\u673a\u548c\u5b50\u5f39\u7684\u5b9e\u73b0<br \/>\n   <\/strong>\n  <\/p>\n<p>\n   \u6e38\u620f\u4e2d\u4f7f\u7528\u5230\u7684\u98de\u673a\u3001\u5b50\u5f39\u5747\u91c7\u7528\u5bf9\u5e94\u7684\u7c7b\u5b9e\u73b0\u3002\u56e0\u4e3a\u5b50\u5f39\u7684\u6570\u91cf\u4f1a\u6709\u5f88\u591a\uff0c\u654c\u673a\u7684\u6570\u91cf\u4e5f\u4f1a\u5f88\u591a\uff0c\u6240\u4ee5\u6bcf\u4e00\u9897\u5b50\u5f39\u987b\u8981\u7528\u4e00\u4e2a\u5bf9\u8c61\u6765\u8bb0\u5f55\u8fd9\u5f53\u524d\u5b50\u5f39\u5728\u5c4f\u5e55\u4e2d\u7684X\uff0cY\u5750\u6807\u3002\u6bcf\u4e00\u67b6\u654c\u673a\u4e5f\u662f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u4e5f\u8bb0\u5f55\u7740\u5b83\u5728\u5c4f\u5e55\u4e2d\u7684X,Y\u5750\u6807\u3002\u8fd9\u6837\u5728\u5904\u7406\u78b0\u649e\u7684\u65f6\u5019\u901a\u8fc7\u904d\u5386\u5b50\u5f39\u5bf9\u8c61\u4e0e\u654c\u673a\u5bf9\u8c61\u5c31\u53ef\u4ee5\u8ba1\u7b97\u51fa\u78b0\u649e\u7684\u7ed3\u679c\uff0c\u4ece\u800c\u62ff\u5230\u78b0\u649e\u7684\u654c\u673a\u5bf9\u8c61\u64ad\u653e\u6b7b\u4ea1\u7206\u70b8\u52a8\u753b\u3002\n  <\/p>\n<p>\n   \u6e38\u620f\u8fc7\u7a0b\u4e2d\u6bcf\u96943\u79d2\u6dfb\u52a0\u4e00\u67b6\u654c\u673a\uff0c\u73a9\u5bb6\u6309\u7a7a\u683c\u952e\u53d1\u5c04\u5b50\u5f39\u5e76\u521d\u59cb\u5316\u5176\u4f4d\u7f6e\u5750\u6807\u5728\u73a9\u5bb6\u98de\u673a\u524d\u65b9\u3002\u5728\u5b9a\u65f6\u4e8b\u4ef6\u4e2d\u4e0d\u65ad\u66f4\u65b0\u6e38\u620f\u80cc\u666f\u56fe\u7247\u4f4d\u7f6e\uff0c\u4e0b\u79fb5\u4e2a\u50cf\u7d20\uff0c\u5b9e\u73b0\u5411\u4e0b\u6eda\u52a8\u6548\u679c\uff0c\u540c\u65f6\u66f4\u65b0\u6bcf\u53d1\u5b50\u5f39\u4f4d\u7f6e\u6bcf\u6b21\u4e0a\u79fb1\u4e2a\u50cf\u7d20\uff0c\u66f4\u65b0\u654c\u673a\u4f4d\u7f6e\uff08\u6bcf\u6b211\u4e2a\u50cf\u7d20\uff09\uff0c\u6700\u540e\u68c0\u6d4b\u5b50\u5f39\u4e0e\u654c\u673a\u7684\u78b0\u649e\u3002\n  <\/p>\n<p>\n   \u8fd9\u6837\u5728\u5904\u7406\u78b0\u649e\u7684\u65f6\u5019\u5176\u5b9e\u5c31\u662f\u6bcf\u4e00\u9897\u5b50\u5f39\u7684\u77e9\u5f62\u533a\u57df\u4e0e\u6bcf\u4e00\u67b6\u654c\u673a\u7684\u77e9\u5f62\u533a\u57df\u7684\u78b0\u649e\u3002\u901a\u8fc7\u904d\u5386\u5b50\u5f39\u5bf9\u8c61\u4e0e\u654c\u673a\u5bf9\u8c61\u5c31\u53ef\u4ee5\u8ba1\u7b97\u51fa\u78b0\u649e\u7684\u7ed3\u679c\uff0c\u4ece\u800c\u5f97\u5230\u78b0\u649e\u7684\u654c\u673a\u5bf9\u8c61\u5e76\u64ad\u653e\u6b7b\u4ea1\u7206\u70b8\u52a8\u753b\u3002\n  <\/p>\n<h2 id=\"2%E3%80%81%E9%A3%9E%E6%9C%BA%E8%AE%BE%E8%AE%A1%E6%B8%B8%E6%88%8F%E8%AE%BE%E8%AE%A1%E6%AD%A5%E9%AA%A4\">\n   <a name=\"t2\"><br \/>\n   <\/a><br \/>\n   <strong><br \/>\n    2\u3001\u98de\u673a\u5c04\u51fb\u6e38\u620f\u8bbe\u8ba1\u6b65\u9aa4<br \/>\n   <\/strong><br \/>\n  <\/h2>\n<p>\n   <strong><br \/>\n    1\u3001\u8bbe\u8ba1\u5b50\u5f39\u7c7b<br \/>\n   <\/strong>\n  <\/p>\n<p>\n   \u521b\u5efa\u4e00\u4e2a\u7684Bullet\u7c7b\uff0c\u7528\u4e8e\u8868\u793a\u5b50\u5f39\uff0c\u5b9e\u73b0\u5b50\u5f39\u5750\u6807\u66f4\u65b0\uff0c\u7ed8\u5236\u5b50\u5f39\u52a8\u753b\u6548\u679c\u5e76\u4e0a\u79fb1\u4e2a\u50cf\u7d20\u3002\u5b50\u5f39\u662f\u67094\u5e27\u7ec4\u6210\uff0c\u6bcf10\u4e2a\u65f6\u95f4\u95f4\u9694\uff08\u6bcf\u4e2a\u95f4\u9694\u4e3a1000\/60=16.67\u6beb\u79d2\uff09\u6362\u4e00\u5e27\u3002\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      \/\/\u5b50\u5f39\u7c7b<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      var Bullet = function (image, x, y) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.image = image;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.x = x;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.y = y;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.width = image.width\/4;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.height = image.height ;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.frm = 0; \/\/\u5f53\u524d\u662f\u7b2c\u51e0\u5e27<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.dis = 0; \/\/\u591a\u5c11\u65f6\u95f4\u95f4\u9694<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   \u68c0\u6d4b\u70b9(x, y)\u662f\u5426\u5728\u5b50\u5f39\u533a\u57df\u5185\uff08\u672c\u6e38\u620f\u6ca1\u6709\u4f7f\u7528\uff09\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      Bullet.prototype.testPoint = function (x, y) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      var betweenX = (x &gt;= this.x) &amp;&amp; (x &lt;= this.x + this.width);<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      var betweenY = (y &gt;= this.y) &amp;&amp; (y &lt;= this.y + this.height);<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      return betweenX &amp;&amp; betweenY;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   move\u6539\u53d8\u5b50\u5f39\u4f4d\u7f6e\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      Bullet.prototype.move = function (dx, dy) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.x += dx;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.y += dy;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   draw\u7ed8\u5236\u5b50\u5f39\u52a8\u753b\u6548\u679c\u5e76\u4e0a\u79fb1\u4e2a\u50cf\u7d20\u3002\u6bcf10\u4e2a\u95f4\u9694\u6362\u4e00\u5e27\uff0c\u5b50\u5f39\u51714\u5e27\uff08\u56fe14-7\u6240\u793a\uff09\u3002\u5b50\u5f39\u5750\u6807\u66f4\u65b0\u4e3b\u8981\u4fee\u6539y\u5750\u6807\uff08\u5782\u76f4\u65b9\u5411\uff09\u503c\uff0c\u6bcf\u6b211\u4e2a\u50cf\u7d20\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u4fee\u6539x\u5750\u6807\uff08\u6c34\u5e73\u65b9\u5411\uff09\u503c\uff0c\u8fd9\u91cc\u4e3a\u4e86\u7b80\u5355\u5316\u6ca1\u4fee\u6539x\u5750\u6807\u503c\uff08\u6c34\u5e73\u65b9\u5411\uff09\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      Bullet.prototype.draw = function (ctx) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      ctx.save();<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      ctx.translate(this.x, this.y);<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      ctx.drawImage(this.image, this.frm *this.width, 0 , this.width, this.height,<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      0, 0, this.width, this.height);<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      \/\/\u7ed8\u5236\u5b50\u5f39\u5bf9\u5e94this.frm\u5e27<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      ctx.restore();<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.y--; \/\/\u4e0a\u79fb1\u4e2a\u50cf\u7d20<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.dis++;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      if (this.dis &gt;= 10) {\/\/10\u4e2a\u95f4\u9694\u6362\u4e00\u5e27<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.dis = 0;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.frm++;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      if (this.frm &gt;= 4) this.frm = 0;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      }<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   hitTestObject\u5224\u65ad\u5b50\u5f39\u4e0e\u98de\u673a\u662f\u5426\u78b0\u649e\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      Bullet.prototype.hitTestObject = function (planobj) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      if(isColliding(this.x,this.y,this.width,this.height,<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      planobj.x,planobj.y,planobj.width,planobj.height))\/\/\u53d1\u751f\u78b0\u649e<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      return true;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      else<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      return false;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      }<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   isColliding\u5168\u5c40\u51fd\u6570\u662f\u524d\u9762\u5206\u6790\u7684\u7b2c\u4e8c\u79cd\u78b0\u649e\u68c0\u6d4b\u65b9\u6cd5\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      function isColliding( ax, ay, aw, ah, bx, by, bw, bh)<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      {<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      if(ay &gt; by + bh || by &gt; ay + ah<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      || ax &gt; bx + bw || bx &gt; ax + aw)<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      return false;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      else<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      return true;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      }<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   <strong><br \/>\n    2\u3001\u8bbe\u8ba1\u98de\u673a\u7c7b<br \/>\n   <\/strong>\n  <\/p>\n<p>\n   \u5728\u9879\u76ee\u4e2d\u521b\u5efa\u4e00\u4e2aPlan\u7c7b\uff0c\u7528\u4e8e\u8868\u793a\u654c\u673a\u548c\u5df1\u65b9\u7684\u98de\u673a\uff0c\u5b9e\u73b0\u98de\u673a\u5750\u6807\u66f4\u65b0\uff0c\u7ed8\u5236\u529f\u80fd\u3002\u529f\u80fd\u4e0e\u5b50\u5f39\u7c7b\u76f8\u4f3c\u3002\n  <\/p>\n<p>\n   \u6784\u9020\u51fd\u6570\u4e2dimage\u662f\u98de\u673a\u56fe\u7247\uff0c(x, y)\u662f\u98de\u673a\u4f4d\u7f6e\u5750\u6807\uff0c\u800c\u6700\u540e\u4e00\u4e2a\u53c2\u6570n\u662f\u672c\u98de\u673a\u56fe\u662f\u51e0\u5e27\u52a8\u753b\uff0c\u4f8b\u5982\u5df1\u65b9\u98de\u673a\u662f6\u5e27\u52a8\u753b\uff0c\u654c\u673a\u662f2\u5e27\u52a8\u753b\uff0c\u6548\u679c\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<\/p>\n<p>\n   \u73a9\u5bb6\u98de\u673a\u548c\u654c\u673a<\/p>\n<p>\n   \u5b9e\u73b0\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a\n  <\/p>\n<ol>\n<li>\n<p>\n     <code><br \/>\n      var Plan = function (image, x, y, n) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.image = image;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.x = x;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.y = y;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.originX = x;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.originY = y;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.width = image.width \/ n; \/\/\u6bcf\u5e27\u98de\u673a\u5bbd\u5ea6<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.height = image.height; \/\/\u6bcf\u5e27\u98de\u673a\u9ad8\u5ea6<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.frm = 0;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.dis = 0;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.n = n;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      Plan.prototype.testPoint = function (x, y) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      var betweenX = (x &gt;= this.x) &amp;&amp; (x &lt;= this.x + this.width);<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      var betweenY = (y &gt;= this.y) &amp;&amp; (y &lt;= this.y + this.height);<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      return betweenX &amp;&amp; betweenY;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      Plan.prototype.move = function (dx, dy) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.x += dx;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      this.y += dy;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      Plan.prototype.Y = function ( ) {<br \/>\n      <!-- --><br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      return this.y;<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<li>\n<p>\n     <code><br \/>\n      };<br \/>\n     <\/code>\n    <\/p>\n<\/li>\n<\/ol>\n<p>\n   \u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\n  <\/p>\n<p>\n   \u7248\u6743\u539f\u56e0\uff0c\u5b8c\u6574\u6587\u7ae0\uff0c\u8bf7\u53c2\u8003\u5982\u4e0b\uff1a<br \/>\n   <a href=\"http:\/\/www.mark-to-win.com\/tutorial\/176030.html\" rel=\"nofollow\" title=\"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f\"><br \/>\n    \u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f<br \/>\n   <\/a>\n  <\/p>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 1\u3001\u6e38\u620f\u8bbe\u8ba1\u601d\u8def 2\u3001\u98de\u673a\u5c04\u51fb\u6e38\u620f\u8bbe\u8ba1\u6b65\u9aa4 \u672c\u7bc7\u535a\u6587\u5c06\u5206\u4eab\u4e00\u7bc7\u57fa\u4e8eHTML\u7684\u7b80\u5355\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f\uff0c\u4e0b\u65b9\u662f\u73a9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/\u57fa\u4e8ehtml\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f-3\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 1\u3001\u6e38\u620f\u8bbe\u8ba1\u601d\u8def 2\u3001\u98de\u673a\u5c04\u51fb\u6e38\u620f\u8bbe\u8ba1\u6b65\u9aa4 \u672c\u7bc7\u535a\u6587\u5c06\u5206\u4eab\u4e00\u7bc7\u57fa\u4e8eHTML\u7684\u7b80\u5355\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f\uff0c\u4e0b\u65b9\u662f\u73a9 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/\u57fa\u4e8ehtml\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f-3\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-17T22:00:19+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f\",\"datePublished\":\"2025-04-17T22:00:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/\"},\"wordCount\":23,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5c04\u51fb\u6e38\u620f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/\",\"name\":\"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-04-17T22:00:19+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.wunen.com\/#website\",\"url\":\"http:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"http:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"http:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/\u57fa\u4e8ehtml\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f-3\/","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u76ee\u5f55 1\u3001\u6e38\u620f\u8bbe\u8ba1\u601d\u8def 2\u3001\u98de\u673a\u5c04\u51fb\u6e38\u620f\u8bbe\u8ba1\u6b65\u9aa4 \u672c\u7bc7\u535a\u6587\u5c06\u5206\u4eab\u4e00\u7bc7\u57fa\u4e8eHTML\u7684\u7b80\u5355\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f\uff0c\u4e0b\u65b9\u662f\u73a9 [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/\u57fa\u4e8ehtml\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f-3\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-04-17T22:00:19+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/"},"author":{"name":"admin@wunen","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f","datePublished":"2025-04-17T22:00:19+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/"},"wordCount":23,"commentCount":0,"publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5c04\u51fb\u6e38\u620f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/","name":"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"http:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-04-17T22:00:19+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/18\/%e5%9f%ba%e4%ba%8ehtml%e7%9a%84%e9%a3%9e%e6%9c%ba%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8eHTML\u7684\u98de\u673a\u5c04\u51fb\u6e38\u620f"}]},{"@type":"WebSite","@id":"http:\/\/www.wunen.com\/#website","url":"http:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"http:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"http:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"http:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"http:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=860"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}