{"action":"opened","issue":{"url":"https://api.github.com/repos/hanrenguang/notes/issues/1","repository_url":"https://api.github.com/repos/hanrenguang/notes","labels_url":"https://api.github.com/repos/hanrenguang/notes/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hanrenguang/notes/issues/1/comments","events_url":"https://api.github.com/repos/hanrenguang/notes/issues/1/events","html_url":"https://github.com/hanrenguang/notes/issues/1","id":230194473,"number":1,"title":"BFC(块级格式化上下文) ","user":{"login":"hanrenguang","id":15716147,"avatar_url":"https://avatars1.githubusercontent.com/u/15716147?v=3","gravatar_id":"","url":"https://api.github.com/users/hanrenguang","html_url":"https://github.com/hanrenguang","followers_url":"https://api.github.com/users/hanrenguang/followers","following_url":"https://api.github.com/users/hanrenguang/following{/other_user}","gists_url":"https://api.github.com/users/hanrenguang/gists{/gist_id}","starred_url":"https://api.github.com/users/hanrenguang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanrenguang/subscriptions","organizations_url":"https://api.github.com/users/hanrenguang/orgs","repos_url":"https://api.github.com/users/hanrenguang/repos","events_url":"https://api.github.com/users/hanrenguang/events{/privacy}","received_events_url":"https://api.github.com/users/hanrenguang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-21T03:38:51Z","updated_at":"2017-05-21T03:38:51Z","closed_at":null,"body":"可参考[这里](http://www.cnblogs.com/lhb25/p/inside-block-formatting-ontext.html)\r\n\r\n## 布局规则：  \r\n1.内部的Box会在垂直方向，一个接一个地放置。  \r\n2.Box垂直方向的距离由margin决定。属于同一个BFC的两个相邻Box的margin会发生重叠  \r\n3.每个元素的margin box的左边， 与包含块border box的左边相接触(对于从左往右的格式化，否则相反)。即使存在浮动也是如此。  \r\n4.BFC的区域不会与float box重叠。  \r\n5.BFC就是页面上的一个隔离的独立容器，容器里面的子元素不会影响到外面的元素。反之也如此。  \r\n6.计算BFC的高度时，浮动元素也参与计算  \r\n\r\n## 如何触发BFC：  \r\n1.根元素  \r\n2.float属性不为none  \r\n3.position为absolute或fixed  \r\n4.display为inline-block, table-cell, table-caption, flex, inline-flex  \r\n5.overflow不为visible "}}
{"actor":{"display_login":"hanrenguang"}}