android - 选择输入文本字段时如何删除android中的边框?

标签 android html css

当我选择输入文本字段时,android 默认浏览器会在输入文本字段周围绘制边框吗?

我试过了,但是什么也没做。

input[type="text"]:focus { border: none; outline: none;}

在android浏览器中选择文本字段时,是否可以在输入文本字段周围没有边框?

最佳答案

尝试将背景设置为透明。

<EditText   
    android:layout_width="fill_parent"  
    android:layout_height="wrap_content"  
    android:hint="@string/input"  
    android:background="#00000000" 
/> 

关于android - 选择输入文本字段时如何删除android中的边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10105592/

相关文章:

javascript - jQuery 模态窗口出现在 IE7 和 IE8 中的元素下

android - 启动模拟器时如何修复 GRPC 错误 “WARNING: EmulatorService.cpp:448: Cannot find certfile”?

android - 将 CastCompanionLibrary 添加到项目 - Android Studio

android - 如何让点击手机的搜索按钮什么都不做?

html - 可访问的 Bootstrap 按钮组

html - CSS3/HTML5 中的发光动画效果

html - 盒子阴影动画

android - Firebase 性能未显示/列出 Android 应用程序中使用的某些端点

c# - 带有回车键的文本框行号

javascript - Bootstrap4 响应表 - 固定第一列