使用ion-refresher后position:fixed失效的问题

593

使用<ion-refresher>后,<ion-content>中的一个<div>会被添加一个transform:0的style,导致其中内容的position:fixed失效。

解决办法:强制给div添加transform: none !important;

.fixSortable{
transform: none !important;
}

 

this.scrollContent = this.elementRef.nativeElement.querySelector('.scroll-content');
this.renderer.addClass(this.scrollContent, 'fixSortable');

 

留下一个答复

Please enter your comment!
Please enter your name here