垫子分页器更换工具提示位置 [英] Mat paginator change tooltip position
本文介绍了垫子分页器更换工具提示位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将mat-paginator
的工具提示更靠近分页按钮.当前,工具提示距离太远,请参见下文:
I am trying to position tooltip of mat-paginator
closer to the pagination buttons. Currently, tooltip is too far away, see below:
我尝试更新.cdk-overlay-pane
和.mat-tooltip-panel
类,但对我不起作用.任何观点都将受到高度赞赏!
I tried to update .cdk-overlay-pane
and .mat-tooltip-panel
classes but didn't work for me. Any points are highly appreciated!
推荐答案
将底部样式应用于mat-tooltip-panel类.它可以解决问题.并且对我有用
apply bottom style to mat-tooltip-panel class. It can resolve the issue..and it worked for me
::ng-deep body .cdk-overlay-container {
.mat-tooltip-panel {
bottom: 100px !important;
}
}
这篇关于垫子分页器更换工具提示位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文