{"id":194,"date":"2023-06-14T22:26:40","date_gmt":"2023-06-14T14:26:40","guid":{"rendered":"https:\/\/www.qzdd.net\/?p=194"},"modified":"2023-06-14T22:26:40","modified_gmt":"2023-06-14T14:26:40","slug":"%e6%b0%b4%e5%b9%b3%e5%b1%85%e4%b8%ad%e5%92%8c%e5%9e%82%e7%9b%b4%e5%b1%85%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/www.qzdd.net\/?p=194","title":{"rendered":"\u6c34\u5e73\u5c45\u4e2d\u548c\u5782\u76f4\u5c45\u4e2d"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u6c34\u5e73\u5c45\u4e2d<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u884c\u5185\u5143\u7d20\uff0c\u7236\u5143\u7d20\u8bbe\u7f6etext-align: center\u5373\u53ef<\/li>\n\n\n\n<li>\u5757\u7ea7\u5143\u7d20\uff0c\u5143\u7d20\u8bbe\u7f6emargin: 0 auto\u5373\u53ef<\/li>\n\n\n\n<li>float\u7684\u5143\u7d20\u9700\u8981\u6c34\u5e73\u5c45\u4e2d\u65f6\uff0c\u5305\u88f9\u4e00\u5c42width: fit-content\u7684\u7236\u5143\u7d20\uff0c\u7136\u540e\u7236\u5143\u7d20margin: 0 auto\u643a\u5e26float\u5143\u7d20\u6574\u4f53\u5c45\u4e2d<\/li>\n\n\n\n<li>flex\u5143\u7d20\u5728\u5bb9\u5668\u4e2d\u6c34\u5e73\u5c45\u4e2d\u65f6\uff0c\u5bb9\u5668\u8bbe\u7f6ejustify-content: center(flex-direction: row)\u6216\u8005align-items: center(flex-direction: column)\u5373\u53ef<\/li>\n\n\n\n<li>position: absolute; left: 50%; transform: translate(-50%, 0);<\/li>\n\n\n\n<li>position: absolute; left: 50%; width:\u5df2\u77e5\u503c; margin-left: -0.5*width\u5df2\u77e5\u503c;<\/li>\n\n\n\n<li>position: absolute; left: 0; right: 0; margin: 0  auto;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u5782\u76f4\u5c45\u4e2d<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u884c\u5185\u5143\u7d20\uff0c\u8bbe\u7f6eline-height\u548c\u7236\u5143\u7d20\u9ad8\u5ea6\u76f8\u540c\u5373\u53ef<\/li>\n\n\n\n<li>\u884c\u5185\u5757\u5143\u7d20\uff0c\u8bbe\u7f6evertical-align:middle\uff0c\u540c\u65f6\u7ed9\u7236\u5143\u7d20\u589e\u52a0\u4e00\u4e2acontent: &#8220;&#8221;; vertical-align: middle; display: inline-block;height:100%; \u7684\u4f2a\u5143\u7d20(::after)\u5373\u53ef<\/li>\n\n\n\n<li>\u5bb9\u5668\u5143\u7d20\u8bbe\u7f6edisplay: flex; align-items: center;(flex-direction: row)\u6216\u8005justify-content: center(flex-direction: column)\u5373\u53ef<\/li>\n\n\n\n<li>position: absolute; top: 50%; transform: translate(0, -50%);<\/li>\n\n\n\n<li>position: absolute; top: 50%; height:\u5df2\u77e5\u503c; margin-top: -0.5*height\u5df2\u77e5\u503c;<\/li>\n\n\n\n<li>position: absolute; top: 0; bottom: 0; margin: auto 0;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6c34\u5e73\u5c45\u4e2d \u5782\u76f4\u5c45\u4e2d<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[60,64,76,83],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-base","tag-text-align","tag-vertical-align","tag-76","tag-83"],"_links":{"self":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194"}],"version-history":[{"count":0,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=\/wp\/v2\/posts\/194\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qzdd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}