css - 当它有 2 个输入时,给一个样式以在 AlertController 上显示完整的按钮
问题描述
我使用带有 2 个输入框的AlertController 。因此,我只能看到一半的按钮。那么,当设备上打开键盘时,如何设置它以显示完整按钮?
我试过这个:但它永远不会在运行时应用。
1.scss
.alert-button-group {
margin-top: -25px !important;
}
.ts
myAlert(){
const alert = this.alertCtrl.create({
title: this.enterApiKeyText,
inputs: [
{
name: 'apiKey',
placeholder: this.apiKey
},
{
name: 'apiName',
placeholder: this.apiName
},
],
buttons: [
{
text: 'Cancel',
handler: data => {
}
},
{
text: 'Save',
handler: (data) => {
}
}
}
]
});
alert.present();
}
.html
<ion-row>
<ion-col col-3 tappable (click)="myAlert()">
<button ion-fab mini>
<ion-icon name="add"></ion-icon>
</button>
</ion-col>
</ion-row>
解决方案
推荐阅读
- python - 如何使用 AES 模式 CBC 实现 HMAC 验证
- angular - 动态生成的嵌套 mat-tab-group 未按预期工作
- python - 如何在一个进程中引发异常并在另一个进程中捕获它?
- javascript - 我想在我的项目中添加 gif,我正在编译文件加载器。但我在控制台 Minified React 错误 #130 上收到错误消息
- arrays - VueJs 使用 push 在 LocalStorage 中插入数据数组
- javascript - 检查浏览器是否支持 unadjustedMovement
- node.js - 如何在“包含 EJS 标签”中使用三元运算符
- containerd - 之间的区别: containerd-shim-runc-v2 containerd-shim-runc-v1 containerd-shim
- javascript - React 避免对空对象进行小写转换
- c# - 在 .NET Framework MVC 中对 HTTP 请求运行 while(true) 循环