如果父元素使用overflow:hidden,那么定位的子元素也会受到影响。
代码实例如下:
蚂蚁部落 #box{ width:200px; height:100px; background:#999; position:relative; overflow:hidden;}#inner{ width:100px; height:100px; background:#F00; position:absolute; top:50px;}
查看更多关于父元素设置overflow:hidden对定位元素也有效_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did110842