{"id":772,"date":"2016-02-08T15:05:37","date_gmt":"2016-02-08T06:05:37","guid":{"rendered":"http:\/\/makotohiroshige.com\/pclab\/?page_id=772"},"modified":"2016-02-08T15:05:37","modified_gmt":"2016-02-08T06:05:37","slug":"css-%e3%81%a7%e3%81%ae%e9%80%9a%e5%b8%b8%e3%83%95%e3%83%ad%e3%83%bc","status":"publish","type":"page","link":"https:\/\/pclab.makotohiroshige.com\/?page_id=772","title":{"rendered":"CSS \u3067\u306e\u901a\u5e38\u30d5\u30ed\u30fc"},"content":{"rendered":"<h3>\u901a\u5e38\u30d5\u30ed\u30fc(Normal Flow)<\/h3>\n<p>(\u53c2\u8003\u8cc7\u6599: CSS2.1 specification \u306e 9 Visual formatting model <a href=\"http:\/\/www.w3.org\/TR\/CSS2\/visuren.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.w3.org\/TR\/CSS2\/visuren.html<\/a>)<\/p>\n<p>block-level boxes (\u2252 \u30d6\u30ed\u30c3\u30af\u30ec\u30d9\u30eb\u8981\u7d20) \u306f block formatting context \u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/p>\n<p>inline-level boxes (\u2252 \u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20) \u306f inline formatting context \u304c\u9069\u7528\u3055\u308c\u308b\u3002<\/p>\n<h4>Block formatting context<\/h4>\n<p>Block formatting context \u3067\u306f\u2026<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/block-formatting-context01-1.gif\" alt=\"Block formatting context01\" title=\"block-formatting-context01.gif\" border=\"0\" \/><\/p>\n<ul>\n<li>\u5782\u76f4(vertically)\u306b\u4e26\u3079\u3089\u308c\u308b\u3002<\/li>\n<li>box \u540c\u58eb\u306e\u9593\u9694\u306f margin \u306b\u3088\u3063\u3066\u6c7a\u3081\u3089\u308c\u308b\u3002<\/li>\n<li>(\u4e0a\u4e0b\u306b)\u96a3\u308a\u5408\u3046 block-level boxes \u306e margin \u306f collapse \u3059\u308b\u3002(=\u5408\u4f53\u3057\u3066\u3001\u5927\u304d\u3044\u65b9\u306e\u5024\u306e margin \u4e00\u3064\u306b\u306a\u308b)<\/li>\n<\/ul>\n<p>\u5de6\u7aef\u306e\u914d\u7f6e\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/block-formatting-context02-1.gif\" alt=\"Block formatting context02\" title=\"block-formatting-context02.gif\" border=\"0\" \/><\/p>\n<p>\u5404 box \u306e\u5de6\u7aef(left edge)\u304c\u3001containing box \u306e\u5de6\u7aef\u306b\u304f\u3063\u3064\u304f\u3002<\/p>\n<p>\u6587\u5b57\u306e\u4e26\u3079\u65b9\u304c right-to-left \u306e\u5834\u5408\u306f\u9006\u306b\u306a\u308b\u3002<\/p>\n<p>\u3053\u308c\u306f float \u304c\u3042\u3063\u3066\u3082\u5909\u308f\u3089\u306a\u3044\u3002= float \u304c\u3042\u3063\u3066\u3082\u3001\u305d\u308c\u3092\u7121\u8996\u3057\u3066\u5de6\u7aef\u304c\u5de6\u7aef\u306b\u304f\u3063\u3064\u304f\u3002<\/p>\n<p>\u3057\u304b\u3057(\u3053\u308c\u3089\u306e)box\u306e(\u4e2d\u306e?) line box(ex) (\u5f8c\u8ff0) \u306f\u3001float \u306e\u5b58\u5728\u306e\u305b\u3044\u3067 (\u5de6\u53f3\u65b9\u5411\u306b) \u7e2e\u3080\u3053\u3068\u304c\u3042\u308b\u3002<\/p>\n<h4>Inline formatting context<\/h4>\n<p>Inline formatting context \u3067\u306f\u2026<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context01-1.gif\" alt=\"Inline formatting context01\" title=\"inline-formatting-context01.gif\" border=\"0\" \/><\/p>\n<ul>\n<li>\u6c34\u5e73(horizontally)\u306b\u4e26\u3079\u3089\u308c\u308b\u3002<\/li>\n<li>box \u540c\u58eb\u306e\u9593\u9694\u3067\u306f\u3001margin, border, padding \u304c\u6709\u52b9\u3002<\/li>\n<\/ul>\n<p>\u5782\u76f4\u65b9\u5411\u306e\u5404\u30dc\u30c3\u30af\u30b9\u306e\u914d\u7f6e\u306f\u3001\u3044\u304f\u3064\u304b\u3042\u308b\u3002<\/p>\n<ul>\n<li>bottoms \u307e\u305f\u306f tops \u3092\u305d\u308d\u3048\u3066\u914d\u7f6e<br \/>\n<img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context02-1.gif\" alt=\"Inline formatting context02\" title=\"inline-formatting-context02.gif\" border=\"0\" \/><\/li>\n<li>\u30c6\u30ad\u30b9\u30c8\u306e\u4e2d\u306e baseline \u3092\u305d\u308d\u3048\u3066\u914d\u7f6e<br \/>\n<img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context03-1.gif\" alt=\"Inline formatting context03\" title=\"inline-formatting-context03.gif\" border=\"0\" \/><\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u5404 boxes \u3092\u542b\u307f\u3001line (\u884c)\u3092\u5f62\u6210\u3059\u308b\u9577\u65b9\u5f62\u306e\u30a8\u30ea\u30a2\u3092\u300cline box\u300d\u3068\u547c\u3076\u3002<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context04-1.gif\" alt=\"Inline formatting context04\" title=\"inline-formatting-context04.gif\" border=\"0\" \/><\/p>\n<p>line box \u306e\u9ad8\u3055 (height) :<\/p>\n<ul>\n<li>\u5e38\u306b\u3001\u4e2d\u306b\u3042\u308b\u3059\u3079\u3066\u306e boxes (\u3092\u542b\u3080\u306e)\u306b\u5145\u5206\u306a height \u3092\u6301\u3064\u3002<\/li>\n<li>\u4e2d\u306b\u3042\u308b\u3044\u3061\u3070\u3093\u80cc\u306e\u9ad8\u3044 box \u3088\u308a\u3082\u3001line box \u306e\u9ad8\u3055\u304c\u9ad8\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308b\u3002(e.g., \u6587\u5b57\u306e baseline \u3092\u6301\u3061\u4e0a\u3052\u308b\u5834\u5408\u306a\u3069)<br \/>\n<img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context05-1.gif\" alt=\"Inline formatting context05\" title=\"inline-formatting-context05.gif\" border=\"0\" \/><\/li>\n<\/ul>\n<p>\u4e2d\u306e box \u306e\u9ad8\u3055\u304c line box \u306e\u9ad8\u3055\u3088\u308a\u5c0f\u3055\u3044\u3068\u304d (\u56f3\u4e2d\u306e box B)\u3001box B \u306e\u5782\u76f4\u65b9\u5411\u306e\u914d\u7f6e\u306f\u3001(CSS\u306e) vertical-align: \u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u6c7a\u307e\u308b\u3002<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context06-1.gif\" alt=\"Inline formatting context06\" title=\"inline-formatting-context06.gif\" border=\"0\" \/><\/p>\n<p>inline-level box (?) \u304c\u6a2a\u306b\u9577\u3044\u3068\u304d\u3001\u5358\u4e00\u306e line box \u306b\u304a\u3055\u307e\u3089\u306a\u3044\u3002\u2192<\/p>\n<p>\u7e26\u306b\u7a4d\u307f\u91cd\u306a\u3063\u305f(vertical-stacked)\u8907\u6570\u306e line boxes \u306b\u307e\u305f\u304c\u3063\u3066\u914d\u7f6e\u3055\u308c\u308b\u3002<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context07-1.gif\" alt=\"Inline formatting context07\" title=\"inline-formatting-context07.gif\" border=\"0\" \/><\/p>\n<p>\u3086\u3048\u306b\u3001\u300c\u6bb5\u843d(paragraph)\u300d\u306f\u300c\u7e26\u306b\u7a4d\u307f\u91cd\u306a\u3063\u305f(vertical-stacked)\u4e00\u7d44\u306e line boxes\u300d\u3067\u3042\u308b\u3002<\/p>\n<p>(\u7279\u306b\u6307\u5b9a\u304c\u306a\u3051\u308c\u3070)\u30bf\u30c6\u306e\u9593\u9694(\u3059\u304d\u307e)\u306f\u306a\u3044\u3002(line box \u540c\u58eb\u306f) overlap \u3057\u306a\u3044\u3002<\/p>\n<p>line box \u306e\u5e45\u3068 float \u3068\u306e\u95a2\u4fc2:<\/p>\n<p>\u901a\u5e38(float\u304c\u306a\u3044\u3068\u304d)\u306e\u5834\u5408: line box \u306e\u5e45\u306f containing block \u306e\u5e45\u3068\u540c\u3058\u3002\u305d\u306e\u7d50\u679c\u3069\u306e line box \u3082\u5e45\u306f\u540c\u3058\u3002<\/p>\n<p>float \u304c\u3042\u308b\u5834\u5408: line box \u306f float \u3092\u907f\u3051\u3066\u5e45\u304c\u77ed\u304f\u306a\u308b\u3002<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context08-1.gif\" alt=\"Inline formatting context08\" title=\"inline-formatting-context08.gif\" border=\"0\" \/><\/p>\n<p>\u540c\u3058 inline formatting context \u306b\u5c5e\u3059\u308b line boxes \u3067\u3082\u3001\u4e00\u822c\u306b\u9ad8\u3055\u306f\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u3002<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context09-1.gif\" alt=\"Inline formatting context09\" title=\"inline-formatting-context09.gif\" border=\"0\" \/><\/p>\n<p>\u4e2d\u306e inline-level box(es) \u306e\u5408\u8a08\u5e45\u304c line box \u306e\u5e45\u3088\u308a\u5c0f\u3055\u3044\u3068\u304d: \u6c34\u5e73\u65b9\u5411(horizontal)\u306e\u5206\u5e03\u306f(CSS\u306e) text-align: \u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u6c7a\u307e\u308b\u3002<\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context10-1.gif\" alt=\"Inline formatting context10\" title=\"inline-formatting-context10.gif\" border=\"0\" \/><\/p>\n<p>(\u5185\u90e8\u306b\u542b\u3080) inline box \u306e\u5e45\u304c\u9577\u3059\u304e\u308b\u3068\u304d: <\/p>\n<p><img decoding=\"async\" style=\"margin-left:auto;margin-right:auto\" src=\"http:\/\/pclab.makotohiroshige.com\/wp-content\/uploads\/sites\/9\/2016\/02\/inline-formatting-context11-1.gif\" alt=\"Inline formatting context11\" title=\"inline-formatting-context11.gif\" border=\"0\" \/><\/p>\n<ul>\n<li>inline box \u304c\u5206\u5272\u3067\u304d\u308b\u306a\u3089: \u2192\u8907\u6570\u306e line box \u306b\u5206\u5e03 (\u524d\u8ff0)<\/li>\n<li>inline box \u304c\u5206\u5272\u3067\u304d\u306a\u3044\u3068\u304d(\u4f8b:1\u3064\u306e\u5927\u304d\u306a\u6587\u5b57\u3001\u305d\u306e\u8a00\u8a9e\u306e\u30eb\u30fc\u30eb\u306b\u3088\u308a\u5206\u5272\u3067\u304d\u306a\u3044\u9577\u3044\u5358\u8a9e\u3001nowrap \u3068\u304b pre \u3068\u304b\u306e\u6307\u5b9a): inline box \u304c (line box \u304b\u3089) overflow \u3059\u308b\u3002(\u5185\u5bb9\u304c line box \u304b\u3089\u306f\u307f\u51fa\u3057\u3066\u8868\u793a\u3055\u308c\u308b)<\/li>\n<\/ul>\n<p>\u3000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u5e38\u30d5\u30ed\u30fc(Normal Flow) (\u53c2\u8003\u8cc7\u6599: CSS2.1 specification \u306e 9 Visual formatting model http:\/\/www.w3.org\/TR\/CSS2\/visuren.h [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":739,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-772","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=\/wp\/v2\/pages\/772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=772"}],"version-history":[{"count":0,"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=\/wp\/v2\/pages\/772\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=\/wp\/v2\/pages\/739"}],"wp:attachment":[{"href":"https:\/\/pclab.makotohiroshige.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}