次のコードを実行して達成することができます: focus pseudo-class Example ライブ デモンストレーション input:focus { background-color: orange; } Subject Student: Age: ログイン後にコピー出力