{"id":2099,"date":"2024-11-10T14:48:00","date_gmt":"2024-11-10T06:48:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2099\/"},"modified":"2024-11-10T14:48:00","modified_gmt":"2024-11-10T06:48:00","slug":"%e5%a6%82%e4%bd%95%e5%b0%86%e8%a1%a8%e6%a0%bc%e6%b0%b4%e5%b9%b3%e6%8e%92%e5%88%97%e5%b9%b6%e5%90%91%e5%8f%b3%e7%a7%bb%e5%8a%a8%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2099\/","title":{"rendered":"\u5982\u4f55\u5c06\u8868\u683c\u6c34\u5e73\u6392\u5217\u5e76\u5411\u53f3\u79fb\u52a8\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173064042430754.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5c06\u8868\u683c\u6c34\u5e73\u6392\u5217\u5e76\u5411\u53f3\u79fb\u52a8\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5c06\u8868\u683c\u6c34\u5e73\u6392\u5217\u5e76\u5411\u53f3\u79fb\u52a8\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u8ba9\u8868\u683c\u6a2a\u5411<\/strong><\/p>\n<p>\u4f60\u7684\u95ee\u9898\u662f\u5173\u4e8e\u8ba9\u8868\u683c\u6a2a\u5411\u6392\u5217\uff0c\u800c\u4e0d\u662f\u8ba9\u8868\u683c\u5411\u53f3\u79fb\u52a8\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528CSS\u4e2d\u7684 float \u5c5e\u6027\u3002<\/p>\n<p><strong>\u6c34\u5e73\u6392\u5217\u8868\u683c<\/strong><\/p>\n<p>\u8981\u5728\u6c34\u5e73\u65b9\u5411\u6392\u5217\u8868\u683c\uff0c\u8bf7\u5c06\u4ee5\u4e0bCSS\u6dfb\u52a0\u5230\u7684\u8868\u683c\u4e2d\uff1a<\/p>\n<pre>table {\n    float: left;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u4f7f\u8868\u683c\u6c34\u5e73\u6392\u5217\u5728\u9875\u9762\u4e0a\u3002<\/p>\n<p><strong>\u5411\u53f3\u79fb\u52a8\u65b0\u751f\u6210\u7684\u8868\u683c<\/strong><\/p>\n<p>\u8981\u5411\u53f3\u79fb\u52a8\u65b0\u751f\u6210\u7684\u8868\u683c\uff0c\u8bf7\u4f7f\u7528 margin-left \u5c5e\u6027\u3002\u5c06\u4ee5\u4e0bCSS\u6dfb\u52a0\u5230\u65b0\u751f\u6210\u7684\u8868\u683c\u4e2d\uff1a<\/p>\n<pre>.box {\n    margin-right: 840px;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u4f7f\u65b0\u751f\u6210\u7684\u8868\u683c\u5411\u53f3\u79fb\u52a8 840px\u3002<\/p>\n<p><strong>\u89e3\u51b3\u5176\u4ed6\u95ee\u9898<\/strong><\/p>\n<p>\u6b64\u5916\uff0c\u4f60\u63d0\u5230\u4e86\u5176\u4ed6\u4e24\u4e2a\u95ee\u9898\uff1a<\/p>\n<ul>\n<li> <strong>\u5728\u4e0b\u6807\u201c\u2228\u201d\u4f4d\u7f6e\u6539\u53d8\u3002<\/strong>\u8fd9\u4f3c\u4e4e\u662f CSS \u6216 JavaScript \u4e2d\u7684\u4e00\u4e2a\u95ee\u9898\u3002\u8bf7\u68c0\u67e5\u4f60\u7684\u4ee3\u7801\u662f\u5426\u5b58\u5728\u4efb\u4f55\u9519\u8bef\u6216\u51b2\u7a81\u3002<\/li>\n<li> <strong>\u4e0b\u6807\u201c\u2228\u201d\u548c\u5176\u4ed6\u5143\u7d20\u5728\u70b9\u51fb\u540e\u88ab\u906e\u6321\u3002<\/strong>\u8fd9\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u5143\u7d20\u7684\u4f4d\u7f6e\u548c\u5927\u5c0f\u6765\u89e3\u51b3\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 position\u3001 top\u3001 left\u3001 width \u548c height \u5c5e\u6027\u3002<\/li>\n<\/ul>\n<p><strong>\u5b8c\u6574\u4ee3\u7801<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7ed3\u5408\u4e0a\u8ff0\u89e3\u51b3\u65b9\u6848\u7684\u5b8c\u6574\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;title&gt;Daily report generator&lt;\/title&gt;\n    &lt;style&gt;\n        * {\n            margin: 0;\n            padding: 0;\n        }\n\n        .box {\n            float: right;\n            margin-right: 840px;\n            margin-top: 200px;\n            width: 10px;\n            position: absolute;\n        }\n\n        .title {\n            background: linear-gradient(#141e30);\n        }\n\n        table {\n            height: 200px;\n            width: 200px;\n            font-size: 12px;\n            text-align: center;\n            float: left;\n            margin: 10px;\n            font-family: arial;\n        }\n\n        .dash_border {\n            font-family: Arial;\n            font-size: 1px;\n            line-height: 1px;\n            font-weight: bold;\n            color: pink;\n            padding: 0.1px;\n            border: 0.1px dashed #FF5722;\n            background:\n                linear-gradient(to top, #ccc, 10px, transparent 1px),\n                linear-gradient(to right, ccc, 10px, transparent 1px),\n                linear-gradient(to bottom, ccc, 10px, transparent 1px),\n                linear-gradient(to left, ccc, 10px, transparent 1px);\n            background-origin: border-box;\n        }\n\n        .button_sty { \/*\u786e\u5b9a*\/\n            float: right;\n            margin-right: -780px;\n            position: relative;\n            top: 120px;\n            margin-top: -200px;\n            font-size: 13px;\n            background: -webkit-linear-gradient(left, #03e9f4, transparent);\n            color: #03e9f4;\n        }\n\n        .add_sty { \/*\u2228*\/\n            float: right;\n            margin-right: 515px;\n            font-size: 20px;\n            top: 12px;\n            position: relative;\n            height: 28px;\n            width: 30px;\n            margin-top: -380px;\n        }\n\n        \/*----------------------------------\u8f93\u5165\u6846----------------------------------------*\/\n        a {\n            text-decoration: none;\n        }\n\n        input {\n            background: transparent;\n            border: 0;\n            outline: none;\n        }\n\n        .loginBox {\n            width: 400px;\n            height: 364px;\n            background-color: #00000060;\n            margin: auto;\n            border-radius: 10px;\n            box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6);\n            padding: 40px;\n            box-sizing: border-box;\n            float: auto;\n            position: absolute;\n        }\n\n        h2 {\n            text-align: center;\n            color: aliceblue;\n            margin-bottom: 30px;\n            font-family: 'Courier New', Courier, monospace;\n        }\n\n        .item {\n            height: 45px;\n            border-bottom: 1px solid #fff;\n            margin-bottom: 40px;\n            position: relative;\n        }\n\n        .item input {\n            width: 100%;\n            height: 100%;\n            color: #fff;\n            padding-top: 20px;\n            box-sizing: border-box;\n        }\n\n        .item input:focus + label,\n        .item input:valid + label {\n            top: 0px;\n            font-size: 2px;\n        }\n\n        .item label {\n            position: absolute;\n            left: 0;\n            top: 12px;\n            transition: all 0.5s linear;\n        }\n\n        .btn {\n            padding: 10px 20px;\n            margin-top: 30px;\n            color: #03e9f4;\n            position: relative;\n            overflow: hidden;\n            text-transform: uppercase;\n            letter-spacing: 2px;\n            left: 35%;\n        }\n\n        .btn:hover {\n            border-radius: 5px;\n            color: #fff;\n            background: #03e9f4;\n            box-shadow: 0 0 5px 0 #03e9f4,\n                0 0 25px 0 #03e9f4,\n                0 0 50px 0 #03e9f4,\n                0 0 100px 0 #03e9f4;\n            transition: all 1s linear;\n        }\n\n        .btn &gt; span {\n            position: absolute;\n        }\n\n        .btn &gt; span:nth-child(1) {\n            width: 100%;\n            height: 2px;\n            background: -webkit-linear-gradient(left, transparent, #03e9f4);\n            left: -100%;\n            top: 0px;\n            animation: line1 1s linear infinite;\n        }\n\n        @keyframes line1 {\n\n            50%,\n            100% {\n                left: 100%;\n            }\n        }\n\n        .btn &gt; span:nth-child(2) {\n            width: 2px;\n            height: 100%;\n            background: -webkit-linear-gradient(top, transparent, #03e9f4);\n            right: 0px;\n            top: -100%;\n            animation: line2 1s 0.25s linear infinite;\n        }\n\n        @keyframes line2 {\n\n            50%,\n            100% {\n                top: 100%;\n            }\n        }\n\n        .btn &gt; span:nth-child(3) {\n            width: 100%;\n            height: 2px;\n            background: -webkit-linear-gradient(left, #03e9f4, transparent);\n            left: 100%;\n            bottom: 0px;\n            animation: line3 1s 0.75s linear infinite;\n        }\n\n        @keyframes line3 {\n\n            50%,\n            100% {\n                left: -100%;\n            }\n        }\n\n        .btn &gt; span:nth-child(4) {\n            width: 2px;\n            height: 100%;\n            background: -webkit-linear-gradient(top, transparent, #03e9f4);\n            left: 0px;\n            top: 100%;\n            animation: line4 1s 1s linear infinite;\n        }\n\n        @keyframes line4 {\n            50%,\n            100% {\n                top: -100%;\n            }\n        }\n\n        body {\n            height: 100vh;\n            background: linear-gradient(#141e30, #243b55);\n            display: flex;\n            justify-content: center;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5c06\u8868\u683c\u6c34\u5e73\u5e76\u5411\u53f3\u79fb\u52a8\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u8ba9\u8868\u683c\u6a2a\u5411 \u4f60\u7684\u95ee\u9898\u662f\u5173\u4e8e\u8ba9\u8868\u683c\u6a2a\u5411\u6392\u5217\uff0c\u800c\u4e0d\u662f\u8ba9\u8868\u683c\u5411\u53f3\u79fb\u52a8\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528CSS\u4e2d\u7684 float \u5c5e\u6027\u3002 \u6c34\u5e73\u6392\u5217\u8868\u683c \u8981\u5728\u6c34\u5e73\u65b9\u5411\u6392\u5217\u8868\u683c\uff0c\u8bf7\u5c06\u4ee5\u4e0bCSS\u6dfb\u52a0\u5230\u7684\u8868\u683c\u4e2d\uff1a table { float: left; } \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u4f7f\u8868\u683c\u6c34\u5e73\u6392\u5217\u5728\u9875\u9762\u4e0a\u3002 \u5411\u53f3\u79fb\u52a8\u65b0\u751f\u6210\u7684\u8868\u683c \u8981\u5411\u53f3\u79fb\u52a8\u65b0\u751f\u6210\u7684\u8868\u683c\uff0c\u8bf7\u4f7f\u7528 margin-left \u5c5e\u6027\u3002\u5c06\u4ee5\u4e0bCSS\u6dfb\u52a0\u5230\u65b0\u751f\u6210\u7684\u8868\u683c\u4e2d\uff1a .box { margin-right: 840px; } \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u4f7f\u65b0\u751f\u6210\u7684\u8868\u683c\u5411\u53f3\u79fb\u52a8 840px\u3002 \u89e3\u51b3\u5176\u4ed6\u95ee\u9898 \u6b64\u5916\uff0c\u4f60\u63d0\u5230\u4e86\u5176\u4ed6\u4e24\u4e2a\u95ee\u9898\uff1a \u5728\u4e0b\u6807\u201c\u2228\u201d\u4f4d\u7f6e\u6539\u53d8\u3002\u8fd9\u4f3c\u4e4e\u662f CSS \u6216 JavaScript \u4e2d\u7684\u4e00\u4e2a\u95ee\u9898\u3002\u8bf7\u68c0\u67e5\u4f60\u7684\u4ee3\u7801\u662f\u5426\u5b58\u5728\u4efb\u4f55\u9519\u8bef\u6216\u51b2\u7a81\u3002 \u4e0b\u6807\u201c\u2228\u201d\u548c\u5176\u4ed6\u5143\u7d20\u5728\u70b9\u51fb\u540e\u88ab\u906e\u6321\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u5143\u7d20\u7684\u4f4d\u7f6e\u548c\u5927\u5c0f\u6765\u89e3\u51b3\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 position\u3001 top\u3001 left\u3001 width \u548c height \u5c5e\u6027\u3002 \u5b8c\u6574\u4ee3\u7801 \u4ee5\u4e0b\u662f\u4e00\u4e2a\u7ed3\u5408\u4e0a\u8ff0\u89e3\u51b3\u65b9\u6848\u7684\u5b8c\u6574\u4ee3\u7801\uff1a &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#8221;utf-8&#8243;&gt; &lt;title&gt;Daily report generator&lt;\/title&gt; &lt;style&gt; * { margin: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2099","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2099"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2099\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}