简体   繁体   English

Angular 8 P-dialog - ipad - 响应问题

[英]Angular 8 P-dialog - ipad - responsiveness issue

p-dialog-不显示关闭符号 We have used PrimeNG p-dialog box.我们使用了 PrimeNG p 对话框。 Its showing with maximize and close button on regular desktop sizes.它在常规桌面尺寸上显示最大化和关闭按钮。 But when we go to ipad view, dialog maximize and close button seems unreachable.但是当我们进入 ipad 视图时,对话框最大化和关闭按钮似乎无法访问。 Below is p-dialog with [responsive]="true" added already.下面是已经添加了 [responsive]="true" 的 p-dialog。 What else is needed?还需要什么? any other attribute ?任何其他属性?

 <p-dialog [modal]="true" [(visible)]="display" [responsive]="true" appendTo="body" > <div>contents goes here</div> </p-dialog>

primeng is not responsive in some resolutions you can use css.在您可以使用 css 的某些分辨率下,primeng 没有响应。 try this.尝试这个。

@media (min-width:768px) and (max-width: 1024px) {
    .ui-dialog{
       left: 50%;
       width: 500px;
       margin-left: -250px;
    }
}

Thank you for your hint Ankush.感谢您的提示 Ankush。 Below code worked -下面的代码有效 -

 @media (min-width:768px) and (max-width: 1024px) { body .ui-dialog { margin-left: 5px; margin-right: -10px; } }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM