CSS: How to have position:absolute div inside a position:relative div not be cropped by an overflow:hidden on a container

前端 未结 4 575
鱼传尺愫
鱼传尺愫 2020-11-30 19:21

I have 3 levels of div:

  • (In green below) A top level div with overflow: hidden. This is because I want some con
4条回答
  •  天涯浪人
    2020-11-30 19:56

    I don't really see a way to do this as-is. I think you might need to remove the overflow:hidden from div#1 and add another div within div#1 (ie as a sibling to div#2) to hold your unspecified 'content' and add the overflow:hidden to that instead. I don't think that overflow can be (or should be able to be) over-ridden.

提交回复
热议问题