ionic-framework - ios 上未显示 ionic 3 验证边框

标签 ionic-framework ionic2 ionic3

我正在使用 ionic3 创建一个带有表单验证的登录页面。当我为 android 和浏览器平台运行应用程序时,验证显示为红色底边框。但对于 ios 平台,它没有在底部显示红色边框。我错过了什么?

请参阅屏幕截图 Screenshot of ios platform- not shwing red border
secreenshot of android platfor- showing red border

最佳答案

如果输入无效且未触及,您可以添加 css 类:

ion-item.ng-invalid.ng-touched{
       border-bottom: 1px solid map-get($colors, danger) !important;
   }

关于ionic-framework - ios 上未显示 ionic 3 验证边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44259803/

相关文章:

javascript - 如何使用 Angular Material 日历

angular - 在 Ionic 4 应用程序中使用 @ionic-native/http

node.js - Ionic 提示 : Acquire a developer license, 安装签名证书

angular - 如何在几秒钟后更改 div 的背景颜色?

ionic-framework - 如何使用不同的按钮弹出 ionic 选择

ionic-framework - 错误: Cannot find module "@ionic/angular"

ionic-framework - ionic Cordova 媒体记录用户音频不起作用

android - MediaPlayer 插件不工作

javascript - 雅虎财经查询api,想要限制为一个国家的搜索结果(Ionic cordova)

angular - Ionic 2 - 模型驱动形式的设置值