我试图在悬停时在 ag-grid 单元格中显示 Bootstrap 工具提示。问题是它部分显示,而工具提示的一部分位于下一列单元格的后面。我尝试为工具提示设置 z-index。但是还是没能成功。请帮忙。
最佳答案
在 ngx-bootstrap 文档中:
When you have some styles on a parent element that interfere with a tooltip, you’ll want to specify a container="body" so that the tooltip’s HTML will be appended to body. This will help to avoid rendering problems in more complex components (like our input groups, button groups, etc) or inside elements with overflow: hidden
可以使用属性container="body"
来解决问题
关于css - 部分显示的 ag-grid 单元格内的 Bootstrap 工具提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46000711/