{"id":1374,"date":"2019-08-26T20:54:11","date_gmt":"2019-08-26T11:54:11","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=1374"},"modified":"2026-01-05T20:55:49","modified_gmt":"2026-01-05T11:55:49","slug":"%e6%96%87%e5%ad%97%e3%82%92%e7%94%bb%e9%9d%a2%e4%b8%ad%e5%a4%ae%e3%81%b8%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=1374","title":{"rendered":"\u6587\u5b57\u3092\u753b\u9762\u4e2d\u592e\u3078\u8868\u793a\u3059\u308b &#8211; table\u7de8"},"content":{"rendered":"\n<p>\u6587\u5b57\u3092\u4e2d\u592e\u3078\u8868\u793a\u3059\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u4eca\u56de\u306f\u3001display: table \u3068\u3001display: table-cell \u3092\u4f7f\u3044\u3001\u6587\u5b57\u3092\u753b\u9762\u306e\u4e2d\u592e\u306b\u8868\u793a\u3055\u305b\u307e\u3059\u3002\u753b\u9762\u3044\u3063\u3071\u3044\u306b\u80cc\u666f\u753b\u50cf\u3092\u8868\u793a\u3057\u3001\u305d\u306e\u4e2d\u592e\u3078\u6587\u5b57\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<br>\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"900\" src=\"https:\/\/dennie.tokyo\/it\/wp-content\/uploads\/2019\/08\/\u30b9\u30af\u30b7\u30e704.png\" alt=\"\" class=\"wp-image-1385\" srcset=\"https:\/\/dennie.tokyo\/it\/wp-content\/uploads\/2019\/08\/\u30b9\u30af\u30b7\u30e704.png 1440w, https:\/\/dennie.tokyo\/it\/wp-content\/uploads\/2019\/08\/\u30b9\u30af\u30b7\u30e704-300x188.png 300w, https:\/\/dennie.tokyo\/it\/wp-content\/uploads\/2019\/08\/\u30b9\u30af\u30b7\u30e704-768x480.png 768w, https:\/\/dennie.tokyo\/it\/wp-content\/uploads\/2019\/08\/\u30b9\u30af\u30b7\u30e704-1024x640.png 1024w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">\u5168\u753b\u9762\u8868\u793a<\/h1>\n\n\n\n<p>\u80cc\u666f\u753b\u50cf\u3092\u753b\u9762\u3044\u3063\u3071\u3044\u306b\u8868\u793a\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"title_box\"><span class=\"box-title\">\u53c2\u8003<\/span>\n<p><a href=\"https:\/\/dennie.tokyo\/it\/?p=1350\" rel=\"noopener noreferrer\" target=\"_blank\">CSS \u80cc\u666f\u753b\u50cf\u3092\u753b\u9762\u3044\u3063\u3071\u3044\u8868\u793a\u3059\u308b<\/a><\/p>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6587\u5b57\u306e\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0<\/h1>\n\n\n\n<p>\u6587\u5b57\u3092\u753b\u9762\u4e2d\u592e\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">HTML<\/h2>\n\n\n\n<p>\u6587\u5b57\u3092\u4e2d\u592e\u306b\u914d\u7f6e\u3059\u308b\u70ba\u306e\u30af\u30e9\u30b9\u306f <strong>out\u30af\u30e9\u30b9<\/strong> \u3068 <strong>center\u30af\u30e9\u30b9<\/strong> \u306b\u306a\u308a\u307e\u3059\u3002<br>out_img\u30af\u30e9\u30b9\u306f\u753b\u50cf\u3092\u8868\u793a\u3057\u3001string\u30af\u30e9\u30b9\u306f\u6587\u5b57\u306e\u5927\u304d\u3055\u3068\u8272\u3092\u8abf\u6574\u3057\u3066\u3044\u307e\u3059\u3002<br>out_img\u30af\u30e9\u30b9\u3001string\u30af\u30e9\u30b9\u306f\u4eca\u56de\u610f\u8b58\u3057\u306a\u304f\u3066\u826f\u304f\u3001\u9069\u5b9c\u597d\u304d\u306a\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;ja&quot;&gt;\n    &lt;head&gt;\n        &lt;meta charset=&quot;utf-8&quot;&gt;\n        &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;\n        &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;\n        &lt;title&gt;test&lt;\/title&gt;\n        &lt;link href=&quot;test.css&quot; rel=&quot;stylesheet&quot; type=&quot;text\/css&quot;&gt;\n    &lt;\/head&gt;\n\n    &lt;body&gt;\n      &lt;div class=&#39;out out_img&#39;&gt;\n        &lt;div class=&#39;center string&#39;&gt;\u65c5\u306b\u51fa\u3088\u3046\u3002&lt;\/div&gt;\n      &lt;\/div&gt;\n    &lt;\/body&gt;\n\n&lt;\/html&gt;<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">CSS<\/h2>\n\n\n\n<p>\u8272\u3005\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u898b\u308b\u3068\u3053\u308d\u306f\u3001<strong>out\u30af\u30e9\u30b9<\/strong> \u3068 <strong>center\u30af\u30e9\u30b9<\/strong>\u3067\u3059\u3002<br>\u843d\u3061\u7740\u3044\u3066\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br><strong>out\u30af\u30e9\u30b9<\/strong> \u3067 <strong>display: table<\/strong> \u3001 <strong>center\u30af\u30e9\u30b9<\/strong> \u3067 <strong>display: table-cell<\/strong>\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br><strong>display: table<\/strong>\u3068<strong>display: table-cell<\/strong>\u306f\u8981\u7d20\u3092\u89aa\u5b50\u95a2\u4fc2\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002<br>\u305d\u3057\u3066\u3001<strong>display: table-cell<\/strong> \u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u306b\u306a\u308a\u307e\u3059\u3002<br>\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u306f\u3001<strong>vertical-align: middle;<\/strong> \u306b\u3088\u308a\u3001\u7e26\u306e\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0\u304c\u884c\u3048\u307e\u3059\u3002<br>\u307e\u305f\u3001<strong>text-align: center;<\/strong> \u306f\u6a2a\u306e\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>body {\n  margin: 0;\n}\n\n.out {\n  display: table;\n  width: 100vw;\n  height: 100vh;\n}\n\n.out_img {\n  background-image: url(&#39;1920_1080.png&#39;);\n  background-position: center center;\n  background-repeat: no-repeat;\n  background-size: cover;\n}\n\n.center {\n  display: table-cell;\n  vertical-align: middle;\n  text-align: center;\n}\n\n.string {\n  font-size: 80px;\n  color: #FFFFFF;\n}\n<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h1>\n\n\n\n<p>\u7279\u306b\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u3092\u4e2d\u592e\u3078\u8868\u793a\u3059\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":4723,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-1374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1374"}],"version-history":[{"count":12,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1374\/revisions"}],"predecessor-version":[{"id":4738,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/1374\/revisions\/4738"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/4723"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}