「CSS」:focusでフォーカスのサンプル

2021年7月19日

1.CSSコード

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<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="テスト" />

CSS

Posted by arkgame