“Focus Selector CSS” Kod odpowiedzi

Focus Selector CSS

The :focus selector is used to select the element that has focus.

The :focus selector is allowed on elements that accept keyboard events or other user inputs.

/* example */

:focus{
    outline: 3px solid black;
    outline-offset:3px;
}
Frightened Fowl

Focus CSS

/* Cible n'importe quel élément <input> */
/* uniquement lorsqu'il a le focus */
input:focus {
  color: red;
}
Mind Wreck

Odpowiedzi podobne do “Focus Selector CSS”

Pytania podobne do “Focus Selector CSS”

Więcej pokrewnych odpowiedzi na “Focus Selector CSS” w CSS

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu