问题
I have a HTML-View and need position: relative;
for placing some elements.
Then, i have a popover.
PROBLEM: Since some elements are positioned relative, z-index is not working anymore, and i found no way that the popover can overlap the relative positioned elements.
QUESTION how to make popovers working properly and using underlaying elements, which are positioned relative?
i gave the popover position: absolute;
and then a second wrapper inside, with position: relative;
and set them to a higher z-index (1000, e.g.).
how to use z-index with relative positioning?
来源:https://stackoverflow.com/questions/57621289/html-popovers-best-way-positioning-z-index