μΌ | μ | ν | μ | λͺ© | κΈ | ν |
---|---|---|---|---|---|---|
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 |
- μ΅μ λ체μ΄λ
- λ°±μ€ 1339λ² μλ°μ€ν¬λ¦½νΈ
- μΉ΄μΉ΄μ€ μ½ν
- ꡬλ¦ν€
- 리μ‘νΈμΏΌλ¦¬ suspense
- λ°±μ€ 2108 nodejs
- app router emotion
- emtion app router
- λ°±μ€ 1339λ² nodejs
- μ¬μ©μ± κ°μ
- next13 emotion
- λ°±μ€ 1339λ² js
- μλ°μ€ν¬λ¦½νΈ λ¬Έμμ΄ μμΆ
- emotion RSC
- js 거리λκΈ° νμΈνκΈ°
- λ°±μ€ 2108 μλ°μ€ν¬λ¦½νΈ
- js
- ꡬλ¦ν€ μ±λ¦°μ§
- νλ‘κ·Έλλ¨Έμ€ κ±°λ¦¬λκΈ° νμΈνκΈ°
- ꡬλ¦ν€ μ±λ¦°μ§ νκ³
- suspense λΉλκΈ°
- μλ°μ€ν¬λ¦½νΈ μ€μ½ν
- suspense λμμ리
- suspense react-query
- TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more:
- μ€μ½ν
- νλ‘κ·Έλλ¨Έμ€ λ¬Έμμ΄ μμΆ
- suspense λ³λͺ©νμ
- js λ¬Έμμ΄ μμΆ
- js μ€μ½ν
- Today
- Total
Lennon FE
[CSS3] μ λ ν°(Selector) λ³Έλ¬Έ
CSS μ λ ν°λ?
μ€νμΌμ μ μ©μν€κΈ° μν΄ HTMLμ μμ±ν μμλ€μ λν΄ μ λ ν°λ‘ νΉμ νκ³ , μ νλ μμμ μ€νμΌμ μ μ©νλ€.
μ°μ 보νΈμ μΌλ‘ μ¬μ©νλ μ 체 μ λ ν°, νκ·Έ μ λ ν°, id, classμ λ ν°λ₯Ό μμλ³΄κ³ ,
κ·Έ ν νμ μ λ ν°, μμ μ λ ν°, λ§ν¬ μ λ ν°λ₯Ό μμ보λλ‘ νμ.
μ 체 μ λ ν°
<!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>
* {
color: blue;
}
</style>
</head>
<body>
<p id="first-pTag">hi minho</p>
<p class="second-pTag">hi ddoddo</p>
<span>hello world!</span>
</body>
</html>
*
* μΌλ‘ μ λ ν°λ₯Ό μ§μ νλ©΄, htmlμ μλ λͺ¨λ μμλ₯Ό μ ννλ κ±Έ μλ―Ένλ€.
μ΄λ€ νκ·Έλ μ νλμ΄ κΈμμμ΄ νλκ² λ³ν κ²μ΄λ€.
νκ·Έ μ λ ν°
<!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>
p {
color: red;
}
</style>
</head>
<body>
<p>hi minho</p>
<p>hi ddoddo</p>
</body>
</html>
htmlμ νκ·Έλ€μ μ¬μ©νλ©΄ λ¨(p, div, span, table λ±λ±)
pνκ·Έμ λν΄ κΈμμμ redλ‘ μ§μ νλ€. κ²°κ³Όλ λ€μκ³Ό κ°λ€.
ID, Class μ λ ν°
<!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>
#first-pTag {
color: red;
}
.second-pTag {
color: orange;
}
</style>
</head>
<body>
<p id="first-pTag">hi minho</p>
<p class="second-pTag">hi ddoddo</p>
</body>
</html>
λͺ¨λκ° μλ€μνΌ idμ λ ν°λ #μΌλ‘, class μ λ ν°λ .μΌλ‘ μμνλ©΄ λλ€.
λ κ°λ λΉμ·νλ©΄μ λ€λ₯Έ μ μ΄ μλ€. idλ htmlμμ μ μΌν΄μΌνμ§λ§, classλ μλλ€.
μ λ ν°μμλ classλ μ¬λ¬ κ°μ μ§μ ν μ μλ€λ κ²μ΄λ€.
<!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>
.first-pTag {
color: red;
}
.second-pTag {
color: blue;
}
.text-font {
font-size: 50px;
}
</style>
</head>
<body>
<p class="first-pTag">hi minho</p>
<p class="second-pTag text-font">hi ddoddo</p>
<span id="first-spnaTag">hello world!</span>
</body>
</html>
hello ddoddoλ₯Ό ν¬ν¨ν pνκ·Έμλ 2κ°μ classκ° λ€μ΄κ° μλ κ±Έ νμΈν μ μκ³ , λ λ€ μ μ©λ¨μ΄ νμΈλλ€.
class μ λ ν°λ₯Ό μ΄μ©νλ κ²μ μ¬μ¬μ© μΈ‘λ©΄μμ μ 리νλ€.
μ΄μ μμ©μ ν΄λ³΄μ.
νμ μ λ ν°
<!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>
div p {
color: red;
}
</style>
</head>
<body>
<div>
<p class="first-pTag">div p</p>
<p class="second-pTag text-font">div p2</p>
<table border="1">
<tr>
<td><p>d</p></td>
<td>d</td>
<td>d</td>
<td>d</td>
</tr>
</table>
</div>
<p>p</p>
</body>
</html>
divλ΄λΆμ μλ pνκ·Έμ λν΄ colorκ°μ λ³λν΄μ£Όμλ€. κ²°κ³Όκ° μμ divλ΄λΆμ μμΉν pνκ·Έλ§ λ°λ κ²μ νμΈν μ μλ€.
κ·Έλ¬λ λ§μ½μ divμμ <table>νκ·Έμ κ°μΈμ§ pνκ·Έκ° μλ€κ³ μκ°ν΄λ³΄μ. μ΄κ²μ κ·Έ νκ·Έ μμλ μ μ©μ΄ λμ΄ μμνμ§ λͺ»ν κ²°κ³Όλ₯Ό μ»μ μ μλ€. μ΄λ μμ μ λ ν°λ‘ ν΄κ²°ν μ μλ€.
μμ μ λ ν°
<!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>
div > p {
color: red;
}
</style>
</head>
<body>
<div>
<p class="first-pTag">div p</p>
<p class="second-pTag text-font">div p2</p>
<table border="1">
<tr>
<td><p>d</p></td>
<td>d</td>
<td>d</td>
<td>d</td>
</tr>
</table>
</div>
<p>p</p>
</body>
</html>
div > p λ₯Ό μ΄μ©ν΄ divμμ μλ μμμ€μ pνκ·Έλ₯Ό κ³ λ₯Ό μ μλ€. νμ(tableνκ·Έ)κΉμ§ μ λ¬μ΄ μ λλ―λ‘, μμν μ μλ κ°μ μ»μ μ μλ€.
λ§ν¬ μ λ ν°
<!DOCTYPE html>
<html>
<head>
<style>
/* μμ§ λ°©λ¬Ένμ§ μμμ λ ν°νΈ μμ black */
a:link {
color: black;
}
/* λ°©λ¬Έ νμ λ ν°νΈ μμ redλ‘ λ³κ²½ */
a:visited {
color: red;
}
/* λ§μ°μ€κ° μ¬λΌκ° μμ λ 30pxλ‘ μ‘°μ */
a:hover {
font-size: 30px;
}
/* μμκ° ν΄λ¦ λ μνμΌ λ μμ μ€λ μ§ */
a:active {
color: orange;
}
</style>
</head>
<body>
<a href="http://www.naver.com" targer="_black">This is a link</a><br />
</body>
</html>
:link
μ λν°κ° μμ§ λ°©λ¬Ένμ§ μμ λ§ν¬μΌ λ
:visited
μ λ ν°κ° λ°©λ¬Έν λ§ν¬μΌ λ
:hover
μ λ ν°μ λ§μ°μ€κ° μ¬λ¦° μνμΌ λ
:active
μ λ ν°μ λ§μ°μ€λ₯Ό ν΄λ¦λ μνμΌ λ
μμ±ν κ²μ μ μΈν λ§μ μ λ ν°λ€μ΄ μμ§λ§, μ΄ μ λλ§ μμ§ν΄λ CSS3λ₯Ό μμ±ν HTMLμ μ μ μ©ν μ μμ κ²μ΄λ€.
'π§βπ» Web > CSS' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[CSS] Transform, Transition, Animationμ λν΄ μμ보μ (0) | 2022.04.07 |
---|