How can I get an absolutely-positioned div to extend outside its relativley-positioned parent, which has overflow: auto?

前端 未结 8 631
栀梦
栀梦 2021-02-01 14:53

I have a relatively -positioned div, which has overflow: auto set. Inside that, I have a div which acts as a sort of drop-down menu. I want the drop-down div to e

8条回答
  •  旧时难觅i
    2021-02-01 15:16

    I am not sure how to achieve what I want.

    Neither am I — more info on what you want?

    Perhaps it would be a good idea to separate the element with overflow from the element with ‘position: relative’, especially if that's only being used to locate the absolute inside.

    ...
    ...

提交回复
热议问题