这是完全不可能做到你想要什么都
overflow: hidden和
position:relative父
div..相反,你可以引入额外的儿童
div并移动
overflow: hidden到这一点。
HTML:
<div id="parent"> <div id="hideOverflow"> <div >sdfsd</div> </div> <div id="child">overflow "visible"</div></div>
CSS:
#parent { position:relative; background:red; width:100px; height:100px}#child { position:absolute; background:#f0f; width:300px; bottom: 0; left: 0}#hideOverflow { overflow: hidden}


