绝对位置和溢出:隐藏(Absolute position and Overflow:hidden)
<div id="parent" style="overflow:hidden; position:relative;"> <div id="child" style="position:absolute;"> </div> </div>
我需要显示比它的父元素大的子元素,但没有删除overflow:hidden; 这可能吗? 父元素有
position:relative;
一旦它脱离了父母的边界,孩子就被剥夺了。(元素有额外的css定义,我只是把样式属性清除)
<div id="parent" style="overflow:hidden; position:relative;"> <div id="child" style="position:absolute;"> </div> </div>
I need to show child element which is bigger than it's parent element, but without removing overflow:hidden; is this possible? parent element has
position:relative;
child element gets stripped as soon as it's out of it's parents borders.(elements have additional css defined I just put style attributes for clearness)
原文:https://stackoverflow.com/questions/5513382
更新时间:2022-09-19 15:09