Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- ESLint
- url #querystring
- 객체참조 #객체
- git pair
- NPM
- OOP
- this
- lightsail nodejs apache
- 클로저
- 기후변화
- jest
- #cloudfront #s3 #html 확장자 없애기
- TypeScript
Archives
- Today
- Total
Hello World...
[css]counter-increment 본문
주석과 이미지를 보면 이해할 수 있다~
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
counter-reset: num; /* num 을 0으로 초기화 */
}
h3::before {
counter-increment: num; /* 1증가 */
content: counter(num) '. '; /* 표시 */
}
</style>
</head>
<body>
<h3>HTML</h3>
<h3>CSS</h3>
<h3>JavaScript</h3>
</body>
</html>
Comments