フォームデザイン(フォーム部品選択フィルタ)
フォーム部品を選択するフィルタ(セレクタの一種)がたくさんあるとのこと。
これらを使うとフォーム部品の選択が楽になるらしい。
表を作ってみた。(と思ったら参考にしているサイトの最後にほとんど同じ表が。。)
フィルタ | 対象タグ |
:input | input select textarea button |
:text | input[type="text"] |
:password | input[type="password"] |
:radio | input[type="radio"] |
:checkbox | input[type="checkbox"] |
:submit | input[type="submit"] input[type="image"] |
:image | input[type="image"] |
:reset | input[type="reset"] |
:button | button |
:file | input[type="file"] |
:checked | input[type="radio"][checked="true"] input[type="checkbox"][checked="true"] |
:selected | selected[selected="true"] |