admin管理员组文章数量:1391960
I have an overlay panel from primeng, I am using appendTo="body"
and it work fine in Chrome, but does't work in Internet Explorer 11. When I click it in IE the panel just doesn't appear, if I remove the appendTo="body"
, it works fine in internet explorer but the panel is just off in the middle of the page. Is there work around this?
<button (click)="tagSelect.toggle($event)">Click</button>
<p-overlayPanel #tagSelect [dismissable]="true" appendTo="body" [showCloseIcon]="true">
some content
</p-overlayPanel>
css of .ui-overlaypanel
display: block;
z-index: 1019;
top: 110.862px;
left: 213.2px;
opacity: 1;
I have an overlay panel from primeng, I am using appendTo="body"
and it work fine in Chrome, but does't work in Internet Explorer 11. When I click it in IE the panel just doesn't appear, if I remove the appendTo="body"
, it works fine in internet explorer but the panel is just off in the middle of the page. Is there work around this?
<button (click)="tagSelect.toggle($event)">Click</button>
<p-overlayPanel #tagSelect [dismissable]="true" appendTo="body" [showCloseIcon]="true">
some content
</p-overlayPanel>
css of .ui-overlaypanel
display: block;
z-index: 1019;
top: 110.862px;
left: 213.2px;
opacity: 1;
Share
Improve this question
edited Feb 22, 2018 at 11:40
Suresh Ponnukalai
14k5 gold badges35 silver badges54 bronze badges
asked Feb 22, 2018 at 9:46
sashafedsdevsashafedsdev
1692 gold badges3 silver badges11 bronze badges
1 Answer
Reset to default 1The issue I had is the inline style in the button caused the problem, now I use appendTo="body"
and it work fine in Chrome and IE.
<button style="float: right; position: relative; margin: 15px;">Click</button>
change to:
<button>Click</button>
本文标签: javascriptprimeng overlay panel appendToquotbodyquot alternative cssStack Overflow
版权声明:本文标题:javascript - primeng overlay panel appendTo="body" alternative css - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744754670a2623388.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论