css – 究竟是什么显示:block;做一个元素?

显示的具体规格是什么?我知道很多具体的东西应用到一个元素会做,但我想听到他们的一切.

谢谢.

解决方法

Quote from W3C

In a block formatting context,Boxes are laid out one after the other,vertically,beginning at the top of a containing block. The vertical distance between two sibling Boxes is determined by the ‘margin’ properties. Vertical margins between adjacent block Boxes in a block formatting context collapse.

In a block formatting context,each Box’s left outer edge touches the left edge of the containing block (for right-to-left formatting,right edges touch). This is true even in the presence of floats (although a Box’s content area may shrink due to the floats).

相关文章

Css3如何实现鼠标移上变长特效?(图文+视频)
css3怎么实现鼠标悬停图片时缓慢变大效果?(图文+视频)
jquery如何实现点击网页回到顶部效果?(图文+视频)
css3边框阴影效果怎么做?(图文+视频)
css怎么实现圆角边框和圆形效果?(图文+视频教程)
Css3如何实现旋转移动动画特效