android - 删除按钮边框 - nativescript

标签 android css nativescript

我正在尝试删除注册按钮的边框

#register{
   background-color: transparent;
   border-color: transparent;
   border: 0;
   border-width: 0;
}

border 属性似乎在 nativescript 样式中不受支持 docs当我使用 border-radius: 1 时,边框令人绝望。

平台:android (5.0.2) 和 {N} 1.7.1

最佳答案

background-color: rgba(255, 0, 0, 0.0);
border-color:rgba(255, 0, 0, 0.0);
border-width: 1;

以上是截至 2017 年 6 月解决此问题的新方法。信用 tsonevn。

参见 https://github.com/NativeScript/NativeScript/issues/2626

关于android - 删除按钮边框 - nativescript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36407767/

相关文章:

css - Alight <select> 表单到底部

css - 图像未显示正确的尺寸

nativescript - Singleton 类不适用于组件导航

javascript - Jquery/Js 函数没有按预期工作

angular - Nativescript Angular 错误 NG8001 : 'StackLayout' is not a known element:

javascript - Nativescript - 应用程序关闭时运行代码

android - 如何打开存储在 res/raw 或 assets 文件夹中的 pdf?

android - 在静音模式下在 Android 应用程序中手动静音?

android - 如何判断我的 textview 是否已被椭圆化?

android - 在 Realm 监听器回调中调用 setState 时,直到点击屏幕后 UI 才会更新