「CSS」:focusでフォーカスのサンプル
1.CSSコード
<style>
.cft:focus {
background-color: green;
}
</style>
<style>
.cft:focus {
background-color: green;
}
</style>
<style> .cft:focus { background-color: green; } </style>
2.htmlコード
<input type="text" class="cft" maxlength="10″ value="テスト" />