{"id":53526,"date":"2024-12-03T11:16:05","date_gmt":"2024-12-03T03:16:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/53526\/"},"modified":"2024-12-03T11:16:05","modified_gmt":"2024-12-03T03:16:05","slug":"%e9%80%8f%e6%98%8e%e7%88%b6%e7%9b%92%e5%ad%90%e5%86%85%e5%a6%82%e4%bd%95%e5%9e%82%e7%9b%b4%e5%b1%85%e4%b8%ad%e5%ad%90%e7%9b%92%e5%ad%90%ef%bc%9f-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/53526\/","title":{"rendered":"\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\uff1f <\/h1>\n<p>\u5bf9\u4e8e\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u7262\u56fa\u624e\u5b9e\u7684\u57fa\u7840\u662f\u5341\u5206\u91cd\u8981\u7684\uff0c\u7c73\u4e91\u5c31\u6765\u5e26\u5927\u5bb6\u4e00\u70b9\u70b9\u7684\u638c\u63e1\u57fa\u7840\u77e5\u8bc6\u70b9\u3002\u4eca\u5929\u672c\u7bc7\u6587\u7ae0\u5e26\u5927\u5bb6\u4e86\u89e3\u300a\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\uff1f \u300b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u5feb\u70b9\u6536\u85cf\u8d77\u6765\u5427\uff0c\u5426\u5219\u9700\u8981\u65f6\u5c31\u627e\u4e0d\u5230\u4e86\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241201\/1733042193674c20111c35e.jpg\" class=\"aligncenter\" title=\"\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\uff1f\u63d2\u56fe\" alt=\"\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u8ba9 CSS \u4e2d\u900f\u660e\u7236\u76d2\u5b50\u5185\u7684\u5b50\u76d2\u5b50\u5782\u76f4\u5c45\u4e2d\uff1f<\/strong><\/p>\n<p>\u5728 CSS \u4e2d\uff0c\u5f53\u4f60\u6709\u4e00\u4e2a\u5305\u542b\u6587\u672c\u7684\u7236\u76d2\u5b50\u5e76\u5e0c\u671b\u8ba9\u5176\u4e2d\u7684\u5b50\u76d2\u5b50\u5782\u76f4\u5c45\u4e2d\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4ee5\u4e0b\u6311\u6218\uff1a<\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>\u5982\u679c\u7ed9\u7236\u76d2\u5b50\u8bbe\u7f6e\u900f\u660e\u5ea6\uff08\u4f8b\u5982 opacity: 0.2\uff09\uff0c\u90a3\u4e48\u5b50\u76d2\u5b50\u4e5f\u4f1a\u53d8\u5f97\u900f\u660e\u3002\u5982\u4f55\u9632\u6b62\u8fd9\u79cd\u60c5\u51b5\uff0c\u540c\u65f6\u5b9e\u73b0\u5782\u76f4\u5c45\u4e2d\u6548\u679c\uff1f<\/p>\n<p><strong>\u7b54\u6848\uff1a<\/strong><\/p>\n<pre>&lt;p&gt;\n  &lt;div&gt;\u5b50\u5143\u7d20&lt;\/div&gt;\n&lt;\/p&gt;\n\n\/* \u7236\u5143\u7d20\u4f7f\u7528 rgba \u4ee3\u66ff opacity *\/\np {\n  background-color: rgba(0, 0, 0, 0.2);\n  position: relative;\n}\n\n\/* \u5b50\u5143\u7d20\u7edd\u5bf9\u5b9a\u4f4d\u5e76\u8fdb\u884c\u5782\u76f4\u5c45\u4e2d *\/\ndiv {\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n}<\/pre>\n<p><strong>\u89e3\u91ca\uff1a<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 rgba \u5c5e\u6027\u63a7\u5236\u80cc\u666f\u8272\u7684\u900f\u660e\u5ea6\uff0c\u800c\u4e0d\u662f opacity \u5c5e\u6027\u3002\u8fd9\u53ef\u4ee5\u786e\u4fdd\u5b50\u5143\u7d20\u4fdd\u6301\u4e0d\u900f\u660e\u3002<\/li>\n<li>\u5c06\u5b50\u5143\u7d20\u8bbe\u7f6e\u4e3a\u7edd\u5bf9\u5b9a\u4f4d\uff0c\u5e76\u4f7f\u7528 top: 50% \u548c transform: translateY(-50%) \u5b9e\u73b0\u5782\u76f4\u5c45\u4e2d\u3002<\/li>\n<li>top: 50% \u5c06\u5b50\u5143\u7d20\u7f6e\u4e8e\u7236\u5143\u7d20\u7684\u4e2d\u70b9\u4f4d\u7f6e\u3002<\/li>\n<li>transform: translateY(-50%) \u5c06\u5b50\u5143\u7d20\u5411\u4e0a\u79fb\u52a8\u5176\u81ea\u8eab\u9ad8\u5ea6\u7684\u4e00\u534a\uff0c\u4ece\u800c\u5c06\u5176\u5782\u76f4\u5c45\u4e2d\u3002<\/li>\n<\/ul>\n<p>\u7ec8\u4e8e\u4ecb\u7ecd\u5b8c\u5566\uff01\u5c0f\u4f19\u4f34\u4eec\uff0c\u8fd9\u7bc7\u5173\u4e8e\u300a\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\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   Minio Python SDK \u53ef\u4ee5\u64cd\u4f5c Aliyun OSS \u5417\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\uff1f \u5bf9\u4e8e\u4e00\u4e2a\u6587\u7ae0\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u7262\u56fa\u624e\u5b9e\u7684\u57fa\u7840\u662f\u5341\u5206\u91cd\u8981\u7684\uff0c\u7c73\u4e91\u5c31\u6765\u5e26\u5927\u5bb6\u4e00\u70b9\u70b9\u7684\u638c\u63e1\u57fa\u7840\u77e5\u8bc6\u70b9\u3002\u4eca\u5929\u672c\u7bc7\u6587\u7ae0\u5e26\u5927\u5bb6\u4e86\u89e3\u300a\u900f\u660e\u7236\u76d2\u5b50\u5185\u5982\u4f55\u5782\u76f4\u5c45\u4e2d\u5b50\u76d2\u5b50\uff1f \u300b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e86\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u5feb\u70b9\u6536\u85cf\u8d77\u6765\u5427\uff0c\u5426\u5219\u9700\u8981\u65f6\u5c31\u627e\u4e0d\u5230\u4e86\uff01 \u5982\u4f55\u8ba9 CSS \u4e2d\u900f\u660e\u7236\u76d2\u5b50\u5185\u7684\u5b50\u76d2\u5b50\u5782\u76f4\u5c45\u4e2d\uff1f \u5728 CSS \u4e2d\uff0c\u5f53\u4f60\u6709\u4e00\u4e2a\u5305\u542b\u6587\u672c\u7684\u7236\u76d2\u5b50\u5e76\u5e0c\u671b\u8ba9\u5176\u4e2d\u7684\u5b50\u76d2\u5b50\u5782\u76f4\u5c45\u4e2d\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4ee5\u4e0b\u6311\u6218\uff1a \u95ee\u9898\uff1a\u5982\u679c\u7ed9\u7236\u76d2\u5b50\u8bbe\u7f6e\u900f\u660e\u5ea6\uff08\u4f8b\u5982 opacity: 0.2\uff09\uff0c\u90a3\u4e48\u5b50\u76d2\u5b50\u4e5f\u4f1a\u53d8\u5f97\u900f\u660e\u3002\u5982\u4f55\u9632\u6b62\u8fd9\u79cd\u60c5\u51b5\uff0c\u540c\u65f6\u5b9e\u73b0\u5782\u76f4\u5c45\u4e2d\u6548\u679c\uff1f \u7b54\u6848\uff1a &lt;p&gt; &lt;div&gt;\u5b50\u5143\u7d20&lt;\/div&gt; &lt;\/p&gt; \/* \u7236\u5143\u7d20\u4f7f\u7528 rgba \u4ee3\u66ff opacity *\/ p { background-color: rgba(0, 0, 0, 0.2); position: relative; } \/* \u5b50\u5143\u7d20\u7edd\u5bf9\u5b9a\u4f4d\u5e76\u8fdb\u884c\u5782\u76f4\u5c45\u4e2d *\/ div { position: absolute; top: 50%; transform: translateY(-50%); } \u89e3\u91ca\uff1a \u4f7f\u7528 rgba \u5c5e\u6027\u63a7\u5236\u80cc\u666f\u8272\u7684\u900f\u660e\u5ea6\uff0c\u800c\u4e0d\u662f opacity \u5c5e\u6027\u3002\u8fd9\u53ef\u4ee5\u786e\u4fdd\u5b50\u5143\u7d20\u4fdd\u6301\u4e0d\u900f\u660e\u3002 \u5c06\u5b50\u5143\u7d20\u8bbe\u7f6e\u4e3a\u7edd\u5bf9\u5b9a\u4f4d\uff0c\u5e76\u4f7f\u7528 top: 50% \u548c transform: [&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-53526","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53526","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=53526"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/53526\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=53526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=53526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=53526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}