Div with scroll and content with absolute positions

后端 未结 8 971
小鲜肉
小鲜肉 2020-12-23 16:54

I have a \"div\" with style: overflow-y: scroll; overflow-x: auto; I try to dynamicaly add image inside this \"div\" with absolute or relative position. Everyth

相关标签:
8条回答
  • 2020-12-23 17:50

    I don't know if it is a bug or a "feature" in IE, but I've run into the same thing before. Luckily there is an easy fix. Just add "position:relative" to the <div> that has scrollable contents.

    0 讨论(0)
  • 2020-12-23 17:52

    You know what, it might just be easier to wrap the absolute positioned elements in a relatively positioned container element, I think that should be able to scroll...

    0 讨论(0)
提交回复
热议问题