반응형
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 |
Tags
- react-ga
- s3이미지다운로드됨
- 리팩터링2판테스트
- cypress React
- 디자인패턴
- 시스템설계
- 리팩토링2판4장
- 가상면접3장
- git squash
- gitsquash
- awss3
- FirebaseAnalytics
- 테스트코드책
- Git commit 합치기
- file not found Error
- 시스템설계면접예시
- formik submitting not working
- 리액트구글애널리틱스
- formik react-query submitting not working
- git commit 협업
- 시스템설계면접
- 전략패턴
- 시스템설계방법
- cypressBDD
- 시스템설계면접팁
- 헤드퍼스트전략패턴
- 가상면접으로대규모시스템
- 가상면접2장
- react
- git commit merge
Archives
- Today
- Total
mingg IT
[HTML] Shadow DOM 본문
Shadow dom
말그대로 숨겨진 HTML 요소임
예를들어 <input type=”file”/> 를 사용하고 개발자 도구로 보면 button, span 태그가 두개 생길거임.
이게 shadow dom임.
apperance : none 속성은 기본 브라우저 css를 없애는것
Progressbar 수정 예시
수정 하기 전 기본 Progress bar
F12 클릭 후 Show user agent shadow DOM 을 클릭하면 shadow DOM 을 확인할 수 있다.
Shadow DOM 수정 코드
<progress value="0.5"></progress>
<style>
progress {
appearance: none;
}
::-webkit-progress-bar {
background-color: orange;
}
</style>
수정 결과
바뀐 것을 확인 할 수 있다.
'FrontEnd' 카테고리의 다른 글
[React] Typeit 사용하기 (React v 17) (0) | 2022.04.25 |
---|---|
[리팩토링] 반복문을 파이프라인으로 바꾸기 (0) | 2022.04.10 |
[Next.js] Next.js 에서 .module.scss 사용하기 (0) | 2022.03.08 |
[Typescript] 구조적 타이핑 예시 (0) | 2022.03.02 |
[Typescript] 주석 사용법 (0) | 2022.02.25 |
Comments