2012-04-11 44 views
3

當我選擇一個輸入文本字段的Android默認瀏覽器圍繞輸入文本字段繪製邊框?如何在選擇輸入文本字段時刪除android中的邊框?

我試過了,但它什麼也沒做。

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

當在android瀏覽器中選擇文本字段時,是否可以在輸入文本字段周圍沒有邊框?

回答

4

嘗試將背景設置爲透明。

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