Tooltip element with absolute positioning being clipped by container with overflow: auto
问题 I have a tooltip in a modal. Is there a way that I can avoid the tooltip from being clipped by a container with overflow on it? I need the modal-dialog to handle content overflow so I cannot remove the overflow: auto from it. body { margin: 0; } .container { display: flex; height: 100vh; align-items: center; justify-content: center; } .modal-dialog { display: block; height: 50%; width: 50%; background: cyan; border: 1px solid; overflow: auto; } .tooltip { position: relative; color: red; text