문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
wiki:css:css_note:css_attr_selectors [2021/03/31 15:18] emblim98 [Styling Forms] |
wiki:css:css_note:css_attr_selectors [2023/01/13 18:44] (현재) |
||
|---|---|---|---|
| 줄 150: | 줄 150: | ||
| ====예제==== | ====예제==== | ||
| < | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | input[type=text] { | ||
| + | width: 150px; | ||
| + | display: block; | ||
| + | margin-bottom: | ||
| + | background-color: | ||
| + | } | ||
| + | input[type=button] { | ||
| + | width: 120px; | ||
| + | margin-left: | ||
| + | display: block; | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | <form name=" | ||
| + | Firstname: <input type=" | ||
| + | lastname: <input type=" | ||
| + | <input type=" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| </ | </ | ||
| - | + | ===Result=== | |
| - | + | {{: | |
| + | =====All CSS Attribute Selectors===== | ||
| + | | | ||
| + | ^ %%[attribute]%% | ||
| + | | %%[attribute=value]%% | ||
| + | ^ %%[attribute~=value]%% | ||
| + | | %%[attribute|=value]%% | ||
| + | ^ %%[attribute^=value]%% | ||
| + | | %%[attribute$=value]%% | ||
| + | ^ %%[attribute*=value]%% | ||
| + | \\ | ||
| + | \\ | ||