{"id":8352,"date":"2024-06-12T17:01:01","date_gmt":"2024-06-12T09:01:01","guid":{"rendered":""},"modified":"2024-06-12T17:01:01","modified_gmt":"2024-06-12T09:01:01","slug":"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8352.html","title":{"rendered":"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f"},"content":{"rendered":"

\u6458\u8981<\/s>\uff1a\u6211\u7684\u535a\u5ba2\u5fc5\u987b\u5f97\u6d45\u663e\u6613\u61c2\uff0c\u8fd8\u5f97\u5177\u6709\u5b9e\u8df5\u64cd\u4f5c\u7684\u53ef\u884c\u6027\uff0c\u54ea\u6015\u6ca1\u5b66\u8fc7\u7f51\u9875\u8bbe\u8ba1\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u672c\u7bc7\u535a\u5ba2\u5185\u5bb9\u4e5f\u662f\u53ef\u4ee5\u901a\u8fc7\u81ea\u5df1\u7684\u52aa\u529b\u64cd\u4f5c\u51fa\u6765\u4e86\u7684\uff08\u4fdd\u59c6\u7ea7\u6559\u5b66\uff09<\/p>\n

        \u4e0d\u8fc7\uff0c\u8fd8\u662f\u5f53\u6210\u56fe\u4e00\u4e50\u6765\u9605\u8bfb\u5427\uff0c\u867d\u7136\u5b83\u6bd4\u76f4\u63a5\u70b9\u5f00\u6d4f\u89c8\u5668\u6536\u85cf\u5939\u8981\u66f4\u5bb9\u6613\u627e\u5230\uff0c\u4f46\u786e\u5b9e\u9700\u8981\u81ea\u5df1\u6298\u817e\u6298\u817e\u3002\u5199\u4ee3\u7801\u662f\u4e00\u4ef6\u5f88\u6709\u8da3\u7684\u4e8b\u60c5\uff0c\u5b66\u5230\u7684\u77e5\u8bc6\u80fd\u7528\u5230\u64cd\u4f5c\u4e0a\uff0c\u771f\u7684\u4f1a\u5f88\u6709\u6210\u5c31\u611f\u7684\u3002<\/p>\n

\n

\u771f\u6b63\u7684\u6458\u8981\uff08\u5410\u69fd\uff09\uff1a<\/p>\n

\u5f53\u6211\u65f6\u5e38\u9700\u8981\u4f7f\u7528\u67d0\u4e9b\u7f51\u7ad9\uff08\u61c2\u5f97\u90fd\u61c2\uff09\uff0c\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u4e09\u6b65\ud83d\udc47<\/p>\n

        1.\u6253\u5f00\u6d4f\u89c8\u5668\u540e\uff1b<\/p>\n

        2.\u641c\u4e00\u4e0b\u81ea\u5df1\u60f3\u8bbf\u95ee\u7684\u7f51\u7ad9\uff1b<\/p>\n

        3.\u7136\u540e\u70b9\u8fdb\u53bb\uff1b<\/p>\n

        *4.\u53ef\u80fd\u9700\u8981\u767b\u5f55\uff1b<\/p>\n

        *5.\u67e5\u770b\u81ea\u5df1\u7ecf\u5e38\u770b\u7684\u5185\u5bb9<\/p>\n

        \u2026\u2026<\/p>\n

        \u6709\u65f6\u5019\u6211\u770b\u5230\u4e86\u5f88\u597d\u7684\u7f51\u7ad9\u4f46\u53c8\u4e0d\u5e38\u7528\uff0c\u5bfc\u81f4\u6bcf\u6b21\u60f3\u7528\u7684\u65f6\u5019\u53c8\u8981\u53bb\u641c\u4e00\u641c\uff1b\u6216\u8005\u6211\u6709\u65f6\u8981\u4e0a\u5b66\u6821\u62a2\u8bfe\u7cfb\u7edf\uff0c\u5374\u56e0\u4e3a\u5fd8\u8bb0\u4e86\u7f51\u5740\u6162\u4eba\u4e00\u6b65\u800c\u62a2\u4e0d\u5230\u5fc3\u4eea\u7684\u8bfe\u7a0b\uff08\u5176\u5b9e\u4e5f\u4e0d\u7528\u62a2\uff0c\u6839\u672c\u5c31\u62a2\u4e0d\u5230\uff09\u7b49\u7b49\u7b49\u7b49\u3002<\/p>\n

emmm\u5176\u5b9e\u53ef\u4ee5\u76f4\u63a5\u6536\u85cf\u5728\u6d4f\u89c8\u5668\u91cc\uff0c\u4f46\u5982\u679c\u6362\u53f0\u7535\u8111\uff0c\u9700\u8981\u8bbf\u95ee\u81ea\u5df1\u60f3\u770b\u7684\u7f51\u7ad9\u65f6\uff0c\u90a3\u5c31\u53ea\u80fd\u91cd\u590d\u4ee5\u4e0a\u7684\u6b65\u9aa4\uff0c\u5c31\u5f88\u4e0d\u723d\u3002\u5982\u679c\u6211\u60f3\u66f4\u5feb\u4e00\u70b9\u6253\u5f00\u67d0\u67d0\u7f51\u7ad9\uff0c\u5982\u540c\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u4e00\u6837\u2026\u2026So\uff0c\u6709\u6ca1\u6709\u66f4\u597d\u7684\u529e\u6cd5\u7a33\u5b9a\u5730\u8bbf\u95ee\u81ea\u5df1\u7684\u5e38\u7528\u7f51\u7ad9\uff1b\u6216\u8005\u628a\u5b83\u4eec\u8bb0\u4e0b\u6765\uff08\u6284\u7f51\u5740\uff09\uff0c\u505a\u5230\u5206\u4eab\u7ed9\u4ed6\u4eba\u7684\u64cd\u4f5c\u3002<\/p>\n

        \u90a3\u6211\u4e0d\u80fd\u81ea\u5df1\u5199\u4e2a\u6536\u85cf\u5939\u5417\uff1f<\/p>\n

        \u5fc5\u987b \u884c \uff01<\/p>\n

\u6700\u7ec8\u6548\u679c\u56fe\u5c55\u793a<\/strong><\/p>\n

\"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f<\/p>\n

        \u53ea\u8981\u601d\u60f3\u4e0d\u6ed1\u5761\uff0c\u529e\u6cd5\u603b\u6bd4\u56f0\u96be\u591a\uff01<\/p>\n

\u9879\u76ee\u8bf4\u660e\uff1a <\/strong>\u4f7f\u7528Javascript\u7684\u6253\u5370\u8f93\u51fa\u4ee3\u7801\u8fdb\u884c\u8d85\u94fe\u63a5\u7684\u8df3\u8dc3\uff0c\u8f7b\u677e\u7b80\u5355\u5730\u5199\u4e00\u4e2a\u76f8\u5f53\u4e8e\u54cd\u5e94\u5f0f\u7684(html)\u7f51\u9875\u3002<\/p>\n

\u9700\u8981\u51c6\u5907\uff1a <\/strong>\u6709\u7535\u8111\u5c31\u884c\uff0c\u952e\u76d8\u5b83\u4f1a\u81ea\u5df1\u6253\u4ee3\u7801\uff01\uff08\u6211\u77e5\u9053\u5927\u4f19\u90fd\u559c\u6b22\u70ed\u4e4e\u4e14\u590d\u5236\u7c98\u8d34\u5373\u7528\u7684\u4ee3\u7801\uff0c\u672c\u7bc7\u672b\u5c3e\u5904\u4f1a\u7ed9\u51fa\u6765\u7684\uff09<\/p>\n

OK\uff0c\u5168\u4f53\u76ee\u5149\u5411\u6211\u770b\u9f50\uff0c\u770b\u6211\u770b\u6211\uff0c\u6211\u5ba3\u5e03\u4e2a\u4e8b\u513f\uff1a<\/p>\n<\/p>\n

\u6211\u8981\u5199\u4e2a\u6536\u85cf\u5939\uff01<\/strong><\/u><\/p>\n

\n

==============================\u5206\u5272\u7ebf\u5206\u5272\u7ebf===============================<\/p>\n<\/p>\n

\u6211\u7684\u601d\u8def\uff1a<\/strong>\u8ba1\u5212\u7740\u5199\u4e00\u4e2ahtml\u7f51\u9875\uff0c\u5b83\u5177\u6709\u5982\u540c\u8d85\u94fe\u63a5\u8df3\u8f6c\u9875\u9762\u7684\u529f\u80fd\uff0c\u6bd4\u5982\u5728CSDN\u4e2d\u70b9\u5f00\u4efb\u4f55\u7f51\u9875\u4e2d\u7684\u5143\u7d20\uff0c\u90fd\u4f1a\u5f39\u51fa\u65b0\u7f51\u9875\u3002\u53ef\u4ee5\u7406\u89e3\u6210\u5f39\u51fa\u7684\u65b0\u7f51\u9875\uff0c\u90fd\u662f\u6211\u4eec\u6240\u60f3\u6536\u85cf\u7684\u7f51\u7ad9\u3002<\/p>\n

        \u7b80\u5355\u70b9\u8bf4\uff1a<\/p>\n

        1.\u6211\u4eec\u53ef\u4ee5\u5199\u4e2ahtml\u6587\u4ef6\uff0c\u5b83\u53ef\u4ee5U\u76d8\u643a\u5e26\uff0c\u4e5f\u53ef\u4ee5\u5206\u4eab\u7ed9\u4ed6\u4eba\uff08\u9002\u5408\u5b66\u4e60\u901a\u3001\u667a\u6167\u6811\u4e4b\u7c7b\u7684\uff09<\/p>\n

        2.\u901a\u8fc7css\u683c\u5f0f\u53bb\u5199\u4e2a\u76d2\u5b50\u6837\u5f0f\uff0c\u8ba9\u54b1\u7684\u6536\u85cf\u5939\u957f\u5f97\u4e0d\u90a3\u4e48\u5bd2\u789c\uff08\u7a0d\u5fae\u7a0d\u5fae\u597d\u770b\u70b9\u5c31\u884c\uff09<\/p>\n

        3.\u7528Javascript\u5199\u76f8\u5173\u8981\u6c42\u7684\u8d85\u94fe\u63a5\u6548\u679c\u53ca\u7f16\u8f91\u6536\u85cf\u7684\u7f51\u5740\u3002<\/p>\n<\/p>\n

\u76f4\u63a5\u6765\u5427\uff01<\/p>\n

\n

HTML\u677f\u5757\uff1a<\/p>\n

        html\u7684\u7f16\u5199\u5176\u5b9e\u633a\u5bb9\u6613\u7684\uff0c\u5728DW\u6216\u8005\u662fWebStorm\u7b49\u7f16\u8bd1\u5668\u90fd\u662f\u53ef\u4ee5\u5199html\u7684\u3002\u8fd9\u91cc\u6211\u5206\u4e24\u79cd\u89d2\u5ea6\u6765\u8bf4\u660e\u5982\u4f55\u521b\u5efahtml\u6587\u4ef6:1.\u6709\u7f51\u9875\u8bbe\u8ba1\u5b66\u4e60\u8fc7\u7684\u5b69\u5b50\u4eec\uff1b2.\u6beb\u65e0\u4efb\u4f55\u76f8\u5173\u77e5\u8bc6\u53c8\u60f3\u5b66\u7684\u5b9d\u5b9d\u4eec\u3002<\/p>\n<\/p>\n

        1.\u7f16\u8bd1\u5668\u521b\u5efahtml\u6587\u4ef6\uff08\u6709\u7f51\u9875\u8bbe\u8ba1\u5b66\u4e60\u8fc7\u7684\u5b69\u5b50\u4eec\uff09<\/p>\n

\u4f60\u80fd\u8ddf\u6211\u4fdd\u8bc1(\u5b66\u8fc7\u7f51\u9875\u8bbe\u8ba1\uff09\u57282022\u5e74\u8fd9\u4e2a\u5173\u952e\u7684\u65f6\u95f4\u70b9\u8fd8\u4e0d\u4f1a\u521b\u5efa\uff1f\uff01   \u8138\uff0c\u8138\u90fd\u4e22\u5149\u4e86\u3002<\/p>\n<\/p>\n

        2.\u96f6\u57fa\u7840\u521b\u5efahtml\u6587\u4ef6\uff08\u7ed9\u60f3\u5b66\u4e60\u7684\u5b9d\u5b9d\uff09<\/p>\n

\u54b1\u53ef\u4ee5\u7528\u4e0a\u6bb5\u8c08\u5230\u7684\u7f16\u8bd1\u5668\u53bb\u76f4\u63a5\u521b\u5efa\uff0c\u4e5f\u53ef\u4ee5\u52c7\u4e00\u70b9\uff0c\u7528\u8bb0\u4e8b\u672c\u6765\u5199\uff01<\/p>\n<\/p>\n

\uff081\uff09\u7f16\u8bd1\u5668\u521b\u5efa<\/p>\n

        \u9996\u5148\u9700\u8981\u4e0b\u8f7d\u4e00\u4e2a\u7f16\u8bd1\u5668\uff08\u4e2a\u4eba\u63a8\u8350\u662fWebStrom\uff0c\u4f46\u5982\u679c\u60f3\u8981\u514d\u8d39\u7684\u8bdd\uff0c\u53ef\u4ee5\u7528IJidea\uff09<\/p>\n

        \u5177\u4f53\u64cd\u4f5c\u5982\u56fe\u6240\u793a\u3002<\/p>\n

\"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f<\/p>\n<\/p>\n

\uff082\uff09\u8bb0\u4e8b\u672c\u521b\u5efa\uff08\u4e0d\u9700\u8981\u7f16\u8bd1\u5668\uff0c\u76f4\u63a5\u6765\u6574\uff09<\/p>\n

\u64cd\u4f5c\u5982\u4e0b\u56fe\uff0c\u4e0d\u8fc7\u9700\u8981\u81ea\u5df1\u6253\u5165html\u683c\u5f0f\uff0c\u6216\u8005\u590d\u5236\u7c98\u8d34\u4e0b\u6587\u4ee3\u7801\u5373\u53ef\u3002<\/p>\n

\"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f<\/p>\n<\/p>\n

\uff08\u5728\u8bb0\u4e8b\u672c\u4e2d\u5199\u5165\u5177\u4f53\u4ee3\u7801\uff09<\/p>\n

\n

\u5728\u5b8c\u6210\u4ee3\u7801\u7684\u7f16\u5199\u540e\uff0c\u5c06\u8bb0\u4e8b\u672c\u683c\u5f0f\u8f6chtml\u683c\u5f0f\uff08\u53ea\u6709\u540e\u7f00\u540d\u6539\u6210.html\u624d\u80fd\u6210\u4e3a\u7f51\u9875\uff09<\/p>\n

        \"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f<\/p>\n<\/p>\n

CSS\u677f\u5757\uff1a<\/p>\n

css\u7684\u6982\u5ff5\uff1a\u5199\u5728html\u4e2d\u7684<head>\u4e0e<body>\u6807\u7b7e\u4e4b\u95f4\u7684<style>\u6807\u7b7e\uff0c\u529f\u80fd\u5f3a\u5927\u7684\u8f85\u52a9\uff01<\/p>\n

\u8fd9\u91cc\u63d0\u4f9b\u7684\u662f\u5199\u5c45\u4e2d\u76d2\u5b50\u7684\u4ee3\u7801<\/p>\n

<style> * { margin: 0; padding: 0; } .content { width: 100vw; height: 100vh; background-color: cornflowerblue; background-size: cover; } .content1 { width: 100vw; overflow: hidden; margin: 0 auto; text-align: center; line-height: 100px; background-color: cornflowerblue; } <\/style><\/code><\/pre>\n

\u540c\u65f6\u672c\u7bc7\u53c2\u8003\u4e86B\u7ad9UP\u4e3b \u739b\u5361\u5df4\u5361pap \u4e0b\u96e8\u7684\u52a8\u6001\u7279\u6548\uff08\u6b64css\u90e8\u5206\u4f1a\u5728\u4e0b\u6587\u663e\u793a\uff09<\/p>\n

\"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f<\/p>\n

 \uff08\u518d\u6b21\u611f\u8c22up\u4e3b\u7684\u5e2e\u52a9\uff09<\/p>\n<\/p>\n

JS\u677f\u5757\uff1a<\/p>\n

\u6211\u8fd9\u91cc\u63d0\u4f9b\u7684\u4ee3\u7801\u5757\u662fJS\u529f\u80fd\u2014\u2014\u7528JS\u7684\u8f93\u51fa\u4ee3\u7801\u6765\u4fdd\u5b58\u5b57\u7b26\u4e32\uff0c\u901a\u8fc7\u70b9\u51fb\u7f51\u9875\u4e2d\u7684\u6587\u5b57\u8fdb\u884c\u8d85\u94fe\u63a5\u8df3\u8f6c\uff0c\u987a\u4fbf\u8bbe\u7f6e\u4e00\u4e0b\u5b57\u4f53\u5927\u5c0f\u548c\u989c\u8272\u3002<\/p>\n

 <div class=\"content1\"> <script type=\"text\/javascript\"> document.write('\u767e\u5ea6'.fontcolor('white').fontsize(6).link('https:\/\/www.baidu.com')) <\/script> <\/div><\/code><\/pre>\n

        \u7528\u76d2\u5b50\u5c5e\u6027\u628a\u6574\u4e2ajs\u6253\u5370\u90fd\u5305\u8d77\u6765\uff0c\u5e76\u6307\u5b9acss\u6837\u5f0f\u3002\u57fa\u672c\u4e0a\u5728<body>\u6807\u7b7e\u4e2d\u628a\u4e0a\u9762\u8fd9\u6bb5\u590d\u5236\u7c98\u8d34\u5e76\u6539\u4e00\u6539\u5185\u5bb9\u548c\u7f51\u5740\uff0c\u5c31\u80fd\u505a\u5230\u9f20\u6807\u5355\u51fb\u540e\u8df3\u8f6c\u9875\u9762\u7684\u529f\u80fd\u4e86\u3002<\/p>\n

        \u5176\u4e2d'\u767e\u5ea6'\u662f\u81ea\u5b9a\u4e49\u7684\u663e\u793a\u5b57\u7b26\uff0c\u540e\u9762\u7684'white'\u662f\u767d\u8272\u5b57\u4f53\uff0c\u7136\u540e\u5c31\u662f6\u53f7\u5b57\u4f53\u5927\u5c0f\uff0c\u6700\u540e\u7684link\u5e26\u7684\u7f51\u5740\u5c31\u662f\u53ef\u4ee5\u5355\u51fb\u540e\u8df3\u8f6c\u7684\u76ee\u7684\u7f51\u9875\u3002<\/p>\n

        \u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0c\u6709\u4e9b\u7f51\u5740\u5982\u679c\u662f\u9700\u8981\u767b\u5f55\u7684\uff0c\u5c3d\u91cf\u5199\u767b\u5f55\u540e\u663e\u793a\u7684\u7f51\u5740\uff08\u5e26\u6709uid\u7684\uff09<\/p>\n<\/p>\n

\u5173\u4e8e\u96e8\u6ef4\u4e0b\u843d\u7279\u6548\u7684css\u53cajs\u4ee3\u7801\u53c2\u8003\uff1a<\/p>\n

<style> #rainBox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; } .rain { position: absolute; width: 2px; height: 50px; background: linear-gradient(rgb(249, 249, 249), rgba(221, 255, 2, 0.8)); } <\/style><\/code><\/pre>\n
<script> const box = document.getElementById('rainBox'); let boxHeight = box.clientHeight; let boxWidth = box.clientWidth; \/\/\u9875\u9762\u5927\u5c0f\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u6539\u53d8\u76d2\u5b50\u5927\u5c0f window.onresize = function () { boxHeight = box.clientHeight; boxWidth = box.clientWidth; } \/\/\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\uff0c\u6dfb\u52a0\u96e8\u6ef4 setInterval(() => { const rain = document.createElement('div'); rain.classList.add('rain'); rain.style.top = 0; \/\/\u968f\u673a\u5237\u65b0\u96e8\u70b9\u4f4d\u7f6e rain.style.left = Math.random() * boxWidth + 'px'; \/\/\u968f\u673a\u96e8\u70b9\u900f\u660e\u5ea6 rain.style.opacity = Math.random(); box.appendChild(rain); \/\/\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\uff0c\u96e8\u6c34\u4e0b\u843d let race = 1; const timer = setInterval(() => { if (parseInt(rain.style.top) > boxHeight) { clearInterval(timer); box.removeChild(rain); } race++; rain.style.top = parseInt(rain.style.top) + race + 'px' }, 20) }, 50) <\/script><\/code><\/pre>\n<\/p>\n

\u554a\u54c8\u54c8\u54c8\u54c8\uff0c\u8fd9\u4ee3\u7801\u5341\u5206\u6ef4\u73cd\u8d35\uff0c\u5e94\u8be5\u8ba9\u540c\u5fd7\u4eec\u5148\u770b\uff0c\u770b\u554a\u90fd\u7ed9\u6211\u770b\uff0c\u90fd\u4e0d\u590d\u5236\u7c98\u8d34\u662f\u5427\uff1f<\/p>\n

\u6700\u7ec8\u4ee3\u7801\u5c55\u793a<\/strong><\/p>\n

<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <title>\u6536\u85cf\u6c47\u603b<\/title>\n<\/head>\n\n<style>\n    * {\n        margin: 0;\n        padding: 0;\n    }\n\n    .content {\n        width: 100vw;\n        height: 100vh;\n        background-color: cornflowerblue;\n        background-size: cover;\n    }\n\n    #rainBox {\n        position: fixed;\n        top: 0;\n        left: 0;\n        width: 100vw;\n        height: 100vh;\n        pointer-events: none;\n    }\n\n    .rain {\n        position: absolute;\n        width: 2px;\n        height: 50px;\n        background: linear-gradient(rgb(249, 249, 249), rgba(221, 255, 2, 0.8));\n    }\n\n    .content1 {\n        width: 100vw;\n        overflow: hidden;\n        margin: 0 auto;\n        text-align: center;\n        line-height: 100px;\n        background-color: cornflowerblue;\n    }\n<\/style>\n\n<body>\n<div class=\"content\">\n\n    <div id=\"rainBox\"><\/div>\n\n    \n    \n    <div class=\"content1\">\n        <script type=\"text\/javascript\">\n            document.write('\u767e\u5ea6'.fontcolor('white').fontsize(6).link('https:\/\/www.baidu.com'))\n        <\/script>\n    <\/div>\n    <!--\u628adiv\u8fd9\u4e94\u884c\u4ee3\u7801\u53cd\u590d\u7c98\u8d34\uff0c\u4fee\u6539\u5185\u5bb9\u5373\u53ef\u586b\u5145\u7f51\u9875-->\n    \n    \n    \n<\/div>\n\n<script>\n    const box = document.getElementById('rainBox');\n    let boxHeight = box.clientHeight;\n    let boxWidth = box.clientWidth;\n    \/\/\u9875\u9762\u5927\u5c0f\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u6539\u53d8\u76d2\u5b50\u5927\u5c0f\n    window.onresize = function () {\n        boxHeight = box.clientHeight;\n        boxWidth = box.clientWidth;\n    }\n    \/\/\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\uff0c\u6dfb\u52a0\u96e8\u6ef4\n    setInterval(() => {\n        const rain = document.createElement('div');\n        rain.classList.add('rain');\n        rain.style.top = 0;\n        \/\/\u968f\u673a\u5237\u65b0\u96e8\u70b9\u4f4d\u7f6e\n        rain.style.left = Math.random() * boxWidth + 'px';\n        \/\/\u968f\u673a\u96e8\u70b9\u900f\u660e\u5ea6\n        rain.style.opacity = Math.random();\n        box.appendChild(rain);\n        \/\/\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\uff0c\u96e8\u6c34\u4e0b\u843d\n        let race = 1;\n        const timer = setInterval(() => {\n            if (parseInt(rain.style.top) > boxHeight) {\n                clearInterval(timer);\n                box.removeChild(rain);\n            }\n            race++;\n            rain.style.top = parseInt(rain.style.top) + race + 'px'\n        }, 20)\n    }, 50)\n<\/script>\n\n<\/script>\n<\/body>\n<\/html><\/code><\/pre>\n<\/p>\n

\u8865\u5145\uff1a<\/p>\n

\u96e8\u6ef4\u7279\u6548\u7248\u6743\u5f52\u5c5e<\/p>\n

WebStorm\u7f16\u8bd1\u5668\u5b98\u7f51\u4e0b\u8f7d<\/p>\n

IntelliJ IDEA\u7f16\u8bd1\u5668\u5b98\u7f51\u4e0b\u8f7d (\u5efa\u8bae\u4e0b\u8f7d\u793e\u533a\u7248)<\/p>\n

\u6211\u5c06\u6211\u4e2a\u4eba\u5e38\u7528\u7684\u7f16\u7a0b\u7c7b\u5b66\u4e60\u5e73\u53f0\u6c47\u603b\u653e\u5728\u4e91\u76d8\u91cc\u4e86\uff0c\u9700\u8981\u7684\u53ef\u4ee5\u70b9\u4e0b\u65b9\u94fe\u63a5\u81ea\u53d6\uff01<\/p>\n

\u6211\u4e2a\u4eba\u5728\u7528\u7684\u7f16\u7a0b\u5411\u63a8\u8350\u7f51\u7ad9\uff08\u963f\u91cc\u4e91\u76d8\u4e0b\u8f7d\uff09<\/p>\n

\"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f<\/p>\n

\u90a3\u4e48\uff0c\u4e0b\u6b21\u518d\u89c1\u5566<\/p>\n

==============================THE END===============================<\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"\u7f51\u7ad9\u6536\u85cf\u600e\u4e48\u5f04_\u7f51\u9875\u8bbe\u8ba1\u5236\u4f5c\u7f51\u7ad9\u6a21\u677f\u81ea\u5df1\u52a8\u624b\u5199\u4e00\u4e2a\u7c7b\u4f3c\u6536\u85cf\u5939\u7684\u7f51\u9875\uff01\u975e\u5e38\u9002\u5408\u5206\u4eab\u5b89\u5229\u3001\u7ba1\u7406\u6536\u85cf\u5185\u5bb9\u3001\u4e24\u79d2\u901f\u5ea6\u6253\u5f00\u7f51\u9875\u3010...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8352"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8352"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8352\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}