position:relative;的元素的top值会使其下边界脱离出来父元素   

position:relative   bug

但是也不可将top改成margin-top,这样的视觉效果就像是给其父元素设置了margin-top值

 

2013.7.17日编辑  当时应该是垂直外边距合并的原因

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-02
  • 2021-07-23
  • 2021-05-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-11-23
  • 2022-12-23
  • 2021-09-21
  • 2022-01-26
相关资源
相似解决方案