2011-01-27 16 views

risposta

8

CSS 3 potrebbe aiutare qui:

input[type=text], 
input[type=text]:hover, 
input[type=text]:focus, 
input[type=text]:active 
{ 
    border: 0; 
    outline: none; 
    outline-offset: 0; 
} 
-1

Una textarea? Come:

HTML: <textarea></textarea>

CSS: textarea { border: none 0; }

+0

-1: Che mostra ancora la sagoma gialla sul fuoco. –

+0

@Andrew: 'borderless'! = 'Outline-less', heh. – Chris

+0

La domanda era rivolta specificamente a Chrome. Ero abbastanza chiaro per me che la persona HA FATTO 'border: 0' e stavo cercando di sbarazzarsi del contorno della messa a fuoco. –

0

in css, scrivere

input, textarea, input:focus, textarea:focus { 
    background:transparent; 
    border:0; 
} 

è importante assicurarsi che appare nessun bordo a fuoco

+0

-1: mostra ancora il contorno giallo. –

7

È possibile utilizzare il seguito per rimuovere il bordo e il contorno di messa a fuoco dalle caselle di testo.

input[type=text], textarea { 
    border: 0; 
} 

input[type=text]:focus, textarea:focus { 
    outline: none; 
} 
+0

Nel caso in cui usi una textarea? – Kriem

+0

@Kriem: sostituisci 'input [type = text]' con 'textarea'. –

Problemi correlati