{"id":3135,"date":"2016-03-15T10:00:07","date_gmt":"2016-03-15T01:00:07","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=3135"},"modified":"2016-04-06T17:40:19","modified_gmt":"2016-04-06T08:40:19","slug":"%e3%80%90css3%e3%80%91%e3%83%ac%e3%82%b9%e3%83%9d%e3%83%b3%e3%82%b7%e3%83%96web%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%81%ab%e6%ac%a0%e3%81%8b%e3%81%9b%e3%81%aa%e3%81%84flexbox%e3%81%ae%e4%bd%bf","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=3135","title":{"rendered":"\u3010CSS3\u3011\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6Web\u30c7\u30b6\u30a4\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044Flexbox\u306e\u4f7f\u3044\u65b9\u2460"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#CSS3WebFlexbox\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010CSS3\u3011\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6Web\u30c7\u30b6\u30a4\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044Flexbox\u306e\u4f7f\u3044\u65b9\u2460\n<\/a><ul><li><a href=\"#float\"><span class=\"toc_number toc_depth_2\">1.1<\/span> float<\/a><\/li><li><a href=\"#Flexbox\"><span class=\"toc_number toc_depth_2\">1.2<\/span> Flexbox<\/a><\/li><li><a href=\"#float-2\"><span class=\"toc_number toc_depth_2\">1.3<\/span> float<\/a><\/li><li><a href=\"#flexbox\"><span class=\"toc_number toc_depth_2\">1.4<\/span> flexbox<\/a><\/li><\/ul><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">2<\/span> \u5bfe\u5fdc\u30d6\u30e9\u30a6\u30b6<\/a><\/li><\/ul><\/div>\n<h2 style=\"color: #134985; background: #fffd73; padding:5px;\"><span id=\"CSS3WebFlexbox\">\u3010CSS3\u3011\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6Web\u30c7\u30b6\u30a4\u30f3\u306b\u6b20\u304b\u305b\u306a\u3044Flexbox\u306e\u4f7f\u3044\u65b9\u2460<br \/>\n<\/span><\/h2>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6Web\u30c7\u30b6\u30a4\u30f3\u306e\u91cd\u8981\u6027\u304c\u5897\u3057\u3066\u3044\u308b\u4eca\u3001\u69d8\u3005\u306a\u30c7\u30d0\u30a4\u30b9\u3067\u306e\u95b2\u89a7\u3092\u60f3\u5b9a\u3057\u305f\u67d4\u8edf\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u6c42\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u4eca\u5f8c\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u306f\u5fc5\u8981\u4e0d\u53ef\u6b20\u306b\u306a\u308b\u3068\u8003\u3048\u3089\u308c\u308bCSS\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3001Flexbox\u3067\u3059\u3002<br \/>\nFlexbox\uff08\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u30dc\u30c3\u30af\u30b9\u30ec\u30a4\u30a2\u30a6\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\uff09\u306f\u3001\u3088\u308a\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u3067\u3088\u308a\u67d4\u8edf\u306a\u30dc\u30c3\u30af\u30b9\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u4e0b\u8a18\u306b\u3001\u89aa\u30b3\u30f3\u30c6\u30ca\u300cbox\u300d\u306e\u4e2d\u306b\u3001\u4e8c\u3064\u306e\u5b50\u8981\u7d20div\u3092\u5185\u5305\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><xmp><div class=\"box\">\r\n<div>\r\n\u30b3\u30f3\u30c6\u30f3\u30c4 \r\n<\/div>\r\n<div>\r\n\u30b3\u30f3\u30c6\u30f3\u30c4\r\n<\/div>\r\n<\/div> <\/xmp><\/pre>\n<p>\u6b21\u306e\uff12\u3064\u306ecss\u306f\u3001\u3053\u306e\u5b50\u8981\u7d20\u3092\u6a2a\u4e26\u3073\u306b\u3057\u305f\u3044\u5834\u5408\u306e\u66f8\u304d\u65b9\u3067\u3059\u3002<\/p>\n<p style=\"margin-top:50px;\">\u2460<\/p>\n<pre><xmp>.box div{\r\nfloat:left;\r\n}<\/xmp><\/pre>\n<p style=\"margin-top:50px;\">\u2461<\/p>\n<pre><xmp>.box{\r\n  display:flex; \r\n  } <\/xmp><\/pre>\n<p>\u8868\u793a\u7d50\u679c\u306f\u3001\u3069\u3061\u3089\u3082\u5168\u304f\u540c\u3058\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/12\/0119.jpg\">\n<\/p>\n<p>\u3067\u306f\u3001float\u3068\u6bd4\u3079\u3066\u3069\u3053\u304c\u9055\u3044\u3001\u3069\u306e\u3088\u3046\u306b\u4fbf\u5229\u306a\u306e\u304b\u3001\u305d\u306e\u4e00\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin-top:70px;\">\u4f8b\uff09<\/p>\n<h3 style=\"color:#134985; margin-top:50px\"><span id=\"float\">float<\/span><\/h3>\n<p>\u5b50\u8981\u7d20\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5185\u5bb9\u91cf\u304c\u9055\u3046\u5834\u5408\u3001float\u306a\u3089\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n  \u9ad8\u3055\u3092\u5408\u308f\u305b\u308b\u306b\u306fdiv\u306b\u9ad8\u3055\u3092\u660e\u793a\u3057\u305f\u308a\u3001css\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/12\/0218.jpg\"><\/p>\n<h3 style=\"color:#134985; margin-top:50px\"><span id=\"Flexbox\">Flexbox<\/span><\/h3>\n<p>flex item\u306a\u3089\u3001\u4f55\u3082\u6307\u5b9a\u3059\u308b\u3053\u3068\u306a\u304f\u81ea\u52d5\u7684\u306b\u9ad8\u3055\u3092\u5408\u308f\u305b\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/12\/0315.jpg\"><\/p>\n<p style=\"margin-top:70px;\">\u4f8b\uff12\uff09<\/p>\n<h3 style=\"color:#134985; margin-top:50px\"><span id=\"float-2\">float<\/span><\/h3>\n<p>\u5b50\u8981\u7d20\u304c\u8907\u6570\u4e26\u3093\u3060\u3068\u304d\u3001\u30d6\u30e9\u30a6\u30b6\u5e45\u306e\u72ed\u3044\u753b\u9762\u3067\u8868\u793a\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u6539\u884c\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/12\/0415.jpg\"><\/p>\n<h3 style=\"color:#134985; margin-top:50px\"><span id=\"flexbox\">flexbox<\/span><\/h3>\n<p>\u30d6\u30e9\u30a6\u30b6\u5e45\u3092\u7e2e\u3081\u308b\u3068\u3001\u305d\u306e\u307e\u307e\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4fdd\u3063\u305f\u307e\u307e\u3001\u5b50\u8981\u7d20\u3054\u3068\u7e2e\u307f\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/12\/0514.jpg\"><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u5e45\u3084\u30b3\u30f3\u30c6\u30f3\u30c4\u91cf\u306b\u3082\u67d4\u8edf\u306b\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u308b\u306e\u304cFlexbox\u306a\u306e\u3067\u3059\u3002<br \/>\n  \u4e0a\u3067\u306f\u3001\u6a2a\u4e26\u3073\u3092\u4f8b\u306b\u51fa\u3057\u307e\u3057\u305f\u304c\u3001Flexbox\u306ffloat\u306e\u3088\u3046\u306b\u5358\u306b\u6a2a\u4e26\u3073\u306b\u3059\u308b\u305f\u3081\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n  \u7e26\u4e26\u3073\u306b\u3057\u305f\u308a\u3001flex item\u306e\u4e26\u3073\u9806\u3092\u6307\u5b9a\u3057\u305f\u308a\u3001\u4e2d\u592e\u5bc4\u305b\u3001\u5de6\u5bc4\u305b\u306a\u3069\u306e\u914d\u7f6e\u3092\u3057\u305f\u308a\u3001\u3068\u3055\u307e\u3056\u307e\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\n<\/p>\n<h2 style=\"color:#134985; margin-top:70px\"><span id=\"i\">\u5bfe\u5fdc\u30d6\u30e9\u30a6\u30b6<\/span><\/h2>\n<p><a href=\"http:\/\/caniuse.com\/#feat=flexbox\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2015\/12\/0611.jpg\"><\/a><\/p>\n<p><a href=\"http:\/\/caniuse.com\/#feat=flexbox\" target=\"_blank\">Can I Use<\/a><\/p>\n<p>\u6700\u65b0\u30d6\u30e9\u30a6\u30b6\u306b\u306f\u5168\u3066\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u304c\u3001IE\u306f11+\u3068\u5c11\u3057\u30cf\u30fc\u30c9\u30eb\u304c\u9ad8\u3081\u3002<br \/>\n  safari\u3068iOS\u306b\u95a2\u3057\u3066\u306f\u3001\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\uff08-webkit\uff09\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n<p style=\"margin-top: 70px;\">\u3053\u308c\u307e\u3067\u982d\u3092\u60a9\u307e\u305b\u3066\u6765\u305ffloat\u554f\u984c\u3084clearfix\u3067\u306e\u56de\u308a\u8fbc\u307f\u89e3\u9664\u306e\u554f\u984c\u3092\u4e00\u6c17\u306b\u89e3\u6c7a\u3057\u3066\u3057\u307e\u3046Flexbox\u3002\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u3053\u308c\u304b\u3089\u5148\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u308b\u4e0a\u3067\u4e3b\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n  \u4eca\u304b\u3089\u6e96\u5099\u3057\u3066\u304a\u304f\u3068\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u6b21\u56de\u306f\u3001\u5177\u4f53\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u305d\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u307e\u3067\u982d\u3092\u60a9\u307e\u305b\u3066\u6765\u305ffloat\u554f\u984c\u3084clearfix\u3067\u306e\u56de\u308a\u8fbc\u307f\u89e3\u9664\u306e\u554f\u984c\u3092\u4e00\u6c17\u306b\u89e3\u6c7a\u3057\u3066\u3057\u307e\u3046Flexbox\u3002\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u304c\u3001\u3053\u308c\u304b\u3089\u5148\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u308b\u4e0a\u3067\u4e3b\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u4eca\u304b\u3089\u6e96\u5099\u3057\u3066\u304a\u304f\u3068\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"author":1,"featured_media":3134,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,45],"tags":[],"class_list":["post-3135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-web"],"_links":{"self":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3135"}],"version-history":[{"count":4,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3135\/revisions"}],"predecessor-version":[{"id":3146,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3135\/revisions\/3146"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/3134"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}