{"id":52685,"date":"2024-12-03T12:44:48","date_gmt":"2024-12-03T04:44:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52685\/"},"modified":"2024-12-03T12:44:48","modified_gmt":"2024-12-03T04:44:48","slug":"%e4%bd%bf%e7%94%a8-flexbox-%e7%94%9f%e6%88%90%e4%b8%8b%e6%8b%89%e6%a1%86%ef%bc%8c%e7%82%b9%e5%87%bb%e7%a9%ba%e7%99%bd%e5%8c%ba%e5%9f%9f%e6%97%a0%e6%b3%95%e6%94%b6%e8%b5%b7%ef%bc%8c%e5%a6%82%e4%bd%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52685\/","title":{"rendered":"\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f<\/h1>\n<p>\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u8fd8\u9700\u8981\u4e0d\u65ad\u7ec3\u4e60\u624d\u80fd\u719f\u7ec3\u8fd0\u7528\u3002\u4e0b\u9762\u7c73\u4e91\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u5b9e\u6218\uff0c\u624b\u628a\u624b\u6559\u5927\u5bb6\u5b66\u4e60\u300a\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u300b\uff0c\u5728\u5b9e\u73b0\u529f\u80fd\u7684\u8fc7\u7a0b\u4e2d\u4e5f\u5e26\u5927\u5bb6\u91cd\u65b0\u6e29\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u6e29\u6545\u800c\u77e5\u65b0\uff0c\u56de\u5934\u770b\u770b\u8bf4\u4e0d\u5b9a\u53c8\u6709\u4e0d\u4e00\u6837\u7684\u611f\u609f\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241122\/1732266038674048369f083.jpg\" class=\"aligncenter\" title=\"\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" alt=\"\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>flexbox \u4e0b\u62c9\u6846\u6536\u4e0d\u56de\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u95ee\u9898\uff1a\u4f7f\u7528 flexbox \u751f\u6210\u4e0b\u62c9\u6846\u540e\uff0c\u5206\u9875\u540e\u70b9\u51fb\u7a7a\u767d\u533a\u57df\uff0c\u4e0b\u62c9\u6846\u65e0\u6cd5\u6536\u8d77\u3002<\/p>\n<p>\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;div   style=\"max-width:100%\"&gt;\n    &lt;span class=\"label w110\"&gt;&lt;em class=\"requiredicon\"&gt;*&lt;\/em&gt;*****&lt;\/span&gt;\n    &lt;input type=\"hidden\" name=\"xx.dm\" id=\"dm\" value=\"${xx.dm}\" \/&gt;\n    &lt;input type=\"hidden\" name=\"xx.mc\" id=\"mc\" value=\"${xx.mc}\" \/&gt;\n&lt;\/div&gt;\n&lt;div id=\"ame\" style=\"display: inline-table; margin-right: 40px;\"&gt;&lt;\/div&gt;<\/pre>\n<pre>function FzFlexBox() {\n    $('#ame').flexbox(cj, {\n        inputClass: 'ffb-input required',\n        resultTemplate: '&lt;div class=\"col2\" title=\"{name}\"&gt;{name}&lt;\/div&gt;',\n        onSelect: function() {\n            $('#dm').val($('#ame_hidden').val());\n            $('#mc').val($('#ame_input').val());\n        },\n        paging: {\n            pageSize: 10,\n            summaryTemplate: '\u663e\u793a {start}-{end}&nbsp; \u5171{total} \u7ed3\u679c'\n        },\n        initialValue: \"${xx.mc}\"\n    });\n    $('#gldcjgGajgjgdmName_input').blur(function() {\n        $('#mc').val($('#ame_input').val());\n    });\n}<\/pre>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u7f3a\u4e4f\u5173\u95ed\u4e0b\u62c9\u6846\u7684\u4ee3\u7801\uff0c\u9700\u8981\u5728 blur \u4e8b\u4ef6\u4e2d\u6dfb\u52a0 $(&#8216;#ame&#8217;).closeflexbox(); \u4ee3\u7801\u5173\u95ed\u4e0b\u62c9\u6846\u3002<\/p>\n<p>\u7ec8\u4e8e\u4ecb\u7ecd\u5b8c\u5566\uff01\u5c0f\u4f19\u4f34\u4eec\uff0c\u8fd9\u7bc7\u5173\u4e8e\u300a\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u300b\u7684\u4ecb\u7ecd\u5e94\u8be5\u8ba9\u4f60\u6536\u83b7\u591a\u591a\u4e86\u5427\uff01\u6b22\u8fce\u5927\u5bb6\u6536\u85cf\u6216\u5206\u4eab\u7ed9\u66f4\u591a\u9700\u8981\u5b66\u4e60\u7684\u670b\u53cb\u5427~\u7c73\u4e91\u516c\u4f17\u53f7\u4e5f\u4f1a\u53d1\u5e03\u6587\u7ae0\u76f8\u5173\u77e5\u8bc6\uff0c\u5feb\u6765\u5173\u6ce8\u5427\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Win11\u9884\u89c8\u4f53\u9a8c\u4e09\u4e2a\u9009\u9879\u9009\u62e9\u54ea\u4e00\u4e2a\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f \u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u8fd8\u9700\u8981\u4e0d\u65ad\u7ec3\u4e60\u624d\u80fd\u719f\u7ec3\u8fd0\u7528\u3002\u4e0b\u9762\u7c73\u4e91\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u5b9e\u6218\uff0c\u624b\u628a\u624b\u6559\u5927\u5bb6\u5b66\u4e60\u300a\u4f7f\u7528 Flexbox \u751f\u6210\u4e0b\u62c9\u6846\uff0c\u70b9\u51fb\u7a7a\u767d\u533a\u57df\u65e0\u6cd5\u6536\u8d77\uff0c\u5982\u4f55\u89e3\u51b3\uff1f\u300b\uff0c\u5728\u5b9e\u73b0\u529f\u80fd\u7684\u8fc7\u7a0b\u4e2d\u4e5f\u5e26\u5927\u5bb6\u91cd\u65b0\u6e29\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u6e29\u6545\u800c\u77e5\u65b0\uff0c\u56de\u5934\u770b\u770b\u8bf4\u4e0d\u5b9a\u53c8\u6709\u4e0d\u4e00\u6837\u7684\u611f\u609f\uff01 flexbox \u4e0b\u62c9\u6846\u6536\u4e0d\u56de\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5 \u95ee\u9898\uff1a\u4f7f\u7528 flexbox \u751f\u6210\u4e0b\u62c9\u6846\u540e\uff0c\u5206\u9875\u540e\u70b9\u51fb\u7a7a\u767d\u533a\u57df\uff0c\u4e0b\u62c9\u6846\u65e0\u6cd5\u6536\u8d77\u3002 \u4ee3\u7801\uff1a &lt;div style=&#8221;max-width:100%&#8221;&gt; &lt;span class=&#8221;label w110&#8243;&gt;&lt;em class=&#8221;requiredicon&#8221;&gt;*&lt;\/em&gt;*****&lt;\/span&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;xx.dm&#8221; id=&#8221;dm&#8221; value=&#8221;${xx.dm}&#8221; \/&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;xx.mc&#8221; id=&#8221;mc&#8221; value=&#8221;${xx.mc}&#8221; \/&gt; &lt;\/div&gt; &lt;div id=&#8221;ame&#8221; style=&#8221;display: inline-table; margin-right: 40px;&#8221;&gt;&lt;\/div&gt; function FzFlexBox() { $(&#8216;#ame&#8217;).flexbox(cj, { inputClass: &#8216;ffb-input required&#8217;, resultTemplate: &#8216;&lt;div class=&#8221;col2&#8243; title=&#8221;{name}&#8221;&gt;{name}&lt;\/div&gt;&#8217;, onSelect: function() { $(&#8216;#dm&#8217;).val($(&#8216;#ame_hidden&#8217;).val()); $(&#8216;#mc&#8217;).val($(&#8216;#ame_input&#8217;).val()); }, [&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-52685","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52685","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=52685"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52685\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}