CSS: selector de focagem
seletores CSS manual de referência completo
Exemplos
Um padrão de entrada seleccionada quando o campo recebe o foco:
Entrada: foco
{
background-color: amarelo;
}
{
background-color: amarelo;
}
tente »
Definição e Uso
: Selector de focagem para selecionar o elemento tem o foco.
selectorTip :: foco aceita eventos de teclado ou outros elementos da entrada do usuário.
Suporte a navegadores
Números na tabela representam o primeiro navegador a suportar o número da versão da propriedade.
选择器 | |||||
---|---|---|---|---|---|
:focus | 4.0 | 8.0 | 2.0 | 3.1 | 9.6 |
Nota :: selector selector focodeve ser declarado no IE8 <! DOCTYPE> .
artigos relacionados
Tutorial do CSS: CSS pseudo-classes