[문서] 문서 1.8 ~ 1.11 병합충돌 해결#1862
Open
snowari wants to merge 1 commit into
Open
Conversation
|
@snowari 안녕하세요 은서님! |
아래의 병합 충돌을 해결했습니다. - 1.8 스타일과 클래스 - 1.9 요소 사이즈와 스크롤 - 1.10 브라우저 창 사이즈와 스크롤 - 1.11 좌표
Author
|
마크다운 문법 틀려진 것 다시 복구 하였습니다! 또한 upstream에서 새로 추가된 아래 두 블럭을 한국어로 번역했습니다. 1.8 스타일과 클래스
1.10 브라우저 창 사이즈와 스크롤
|
sohxxny
approved these changes
May 18, 2026
sohxxny
left a comment
There was a problem hiding this comment.
고생하셨습니다! 번역 자체를 리뷰해드리고 싶었는데...
하나하나 다 읽어봤지만 번역하신 부분들은 다 완성도 높다고 느껴져서 드릴 말씀이 없네요ㅎㅎ 대신 기존 번역에서 있었던 오타만 수정 요청드렸습니다!
| <<<<<<< HEAD | ||
| 이론상 `document.documentElement`는 문서의 루트 요소에 상응하고, 루트 요소엔 콘텐츠 전부가 들어가기 때문에 우리는 문서의 전체 크기를 `document.documentElement`의 `scrollWidth`와 `scrollHeight`를 사용해 재면 되지 않냐고 생각합니다. | ||
|
|
||
| 그런데 전체 페이지를 대상으로 했을 때, `document.documentElement`의 프로피터들은 우리가 예상한 대로 동작하지 않습니다. Chrome이나 Safari, Opera에서 스크롤이 없는 경우 `documentElement.scrollHeight`는 `documentElement.clientHeight`보다 작을 때가 있죠. 예상하기엔 같은 값이어야 하는데도 말입니다. |
| @@ -1,3 +1,3 @@ | |||
| # 스타일과 클래스 | |||
|
|
|||
| 자바스크립트를 사용해 어떻게 스타일과 클래스를 다룰 수 있는지 알아보기 전에, 중요한 규칙을 하나 집고 넘어가야 할 것 같습니다. 핵심만 요약했기 때문에 충분할진 모르겠지만 꼭 언급하고 넘어가야 하기 때문입니다. | |||
|
|
||
| 프로퍼티 `elem.style`은 속성 `"style"`에 쓰인 값에 대응되는 객체입니다. `elem.style.width="100px"`은 `style` 속성값을 문자열 `width:100px`로 설정한 것과 같죠. | ||
|
|
||
| 여러 단어를 이어서 만든 프로퍼티는 다음와 같이 카멜 표기법을 사용해 이름 짓습니다. |
|
|
||
| CSS와 비교하자면 창 기준 좌표는 `position:fixed`에 해당하고 문서 기준 좌표는 맨 위 기준 `position:absolute`와 비슷합니다. | ||
|
|
||
| 문서 내 특정 좌표에 무언가를 위치시키고 싶을 땐 `position:absolute`와 `top, `left`를 사용하면 스크롤 이동에 상관없이 해당 요소를 한 좌표에 머물게 할 수 있습니다. 그러려면 우선 정확한 좌표가 필요합니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문서[document] 파트의 병합 충돌을 해결했습니다
요약
연관 이슈
(fix #일이삼)
Pull Request 체크리스트
TODO