Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 자바 구구단 출력
- react with typescript
- java
- Vue3
- 자바 향상된 for문
- 변수
- 자바 공배수
- 타입스크립트
- 정보처리기사실기
- 자바 자동캐스팅
- 자바 if문
- 자바 while문
- 자바 반복문
- 자바
- 이클립스 DB연동
- 자바 강제 캐스팅
- 자바 삼항연산자
- 조코딩
- TypeScript
- 프로그래머스
- 자바 for문
- Til
- MySQL
- 자바 public
- 자바 switch문
- 자바 조건문
- react ag grid
- 항해99
- 자바 스캐너
- 항해99 2기
Archives
- Today
- Total
뇌 채우기 공간
[html][css] 상태 선택자 input:focus / input:enabled/input:disabled css change 본문
WEB/html,CSS
[html][css] 상태 선택자 input:focus / input:enabled/input:disabled css change
자바칩 프라푸치노 2021. 4. 4. 18:15input타입에서 focus, enabled, disabled때 속성 추가하는 법
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
input:focus {
outline: none !important;
border-color: orange;
box-shadow: 0 0 10px #719ECE;
}
input:enabled {
color: pink;
}
input:disabled {
color: violet;
}
</style>
</head>
<body>
상태선택자
<div>
<form action="">
이름 <input type="text"><br>
아이디 <input type="text"><br>
<!-- disabled = 변경 할 수 없다는 뜻 -->
비밀번호 <input type="password" value="1234" disabled="disabled">
</form>
</div>
</body>
</html>
|
cs |
<결과>
728x90
'WEB > html,CSS' 카테고리의 다른 글
[html][css] 선택자를 이용하여 레이아웃 만들어보기 (0) | 2021.04.04 |
---|---|
[html][css]구조 선택자 nth-child/ first-child/last-child (0) | 2021.04.04 |
[html][css]반응선택자 hover css change (0) | 2021.04.04 |
[html][css] 동위선택자 (0) | 2021.04.04 |
[html][css] 자손 및 후손 선택자 / css자손, 후손 선택하는 법 (0) | 2021.04.04 |