2012年11月14日

position:absolute与overflow:hidden,解决子元素设置position:absolute后父元素 overflow:hidden无效的问题

摘要: 讨论内容来自:http://bbs.blueidea.com/thread-2925174-1-1.html绝对定位的对象不是脱离文档流的么,为什么还是会受其父层的overflow:hidden的影响呢?谁知知晓原理并有完美解决方案?运行下面的代码,因为父容器没有设置position:relative|absolute|fixed ,所以overflow是不能生效的 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD 阅读全文

posted @ 2012-11-14 23:36 jQing 阅读(3818) 评论(0) 推荐(0) 编辑

导航