摘要:
一共有三个属性会使元素脱离文档流: (1)浮动(float) (2)position:absolute|fixed 元素脱离文档流会导致父元素高度塌陷,要修复高度塌陷问题,可以将子元素与父元素放在同一个BFC中 阅读全文
摘要:
:first-child选择器是css2中定义的选择器,从字面意思上来看也很好理解,就是第一个子元素。比如有段代码: p:first-child 匹配到的是p元素,因为p元素是div的第一个子元素; h1:first-child 匹配不到任何元素,因为在这里h1是div的第二个子元素,而不是第一个; 阅读全文
摘要:
https://www.cnblogs.com/little-ab/articles/6922903.html 阅读全文
摘要:
http://jsstore.net/ 阅读全文
摘要:
https://juejin.im/post/5a4dfb2ef265da43305ee2d0 https://www.cnblogs.com/wjlog/p/5827168.html 阅读全文
摘要:
https://www.cnblogs.com/tugenhua0707/p/8975121.html 阅读全文