- Notifications
You must be signed in to change notification settings - Fork849
[과제번역]Part 2. 2.9 Element size and scrolling 페이지 과제 번역 #771#798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
yule93 wants to merge4 commits intojavascript-tutorial:masterChoose a base branch fromyule93:master
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
4 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom/solution.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
해답: | ||
```js | ||
let scrollBottom = elem.scrollHeight - elem.scrollTop - elem.clientHeight; | ||
``` | ||
다르게 본다면 '(최대 높이) 빼기 (스크롤바에 가려진 윗부분) 빼기 (보이는 부분)'이 스크롤바에 가려진 바닥 부분입니다. |
8 changes: 4 additions & 4 deletions2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom/task.md
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
8 changes: 4 additions & 4 deletions2-ui/1-document/09-size-and-scroll/2-scrollbar-width/solution.md
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
8 changes: 4 additions & 4 deletions2-ui/1-document/09-size-and-scroll/2-scrollbar-width/task.md
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
28 changes: 14 additions & 14 deletions2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/solution.md
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
14 changes: 7 additions & 7 deletions2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/task.md
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
8 changes: 4 additions & 4 deletions2-ui/1-document/09-size-and-scroll/6-width-vs-clientwidth/solution.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Differences: | ||
1. `getComputedStyle(elem).width`가 끝에 `px`과 함께 스트링값을 반환하는 반면에, `clientWidth`는 숫자값을 반환합니다. | ||
2. `getComputedStyle`은 아마 인라인 요소(inline element)의 `“auto”`와 같은 숫자가 아닌 너비 값을 반환할 것입니다. | ||
3.CSS 너비 표준과 `box-sizing`은 *패딩을 제외한* 내부 콘텐츠 공간을 가리키는 것에 비해 `clientWidth`는 요소와 패딩이 합쳐진 내부 콘텐츠 공간을 가리킵니다. | ||
4.스크롤바와 브라우저가 자신을 위한 영역을 따로 둔다면, 몇 브라우저는 CSS 너비(왜냐하면, 더는 콘텐츠에 사용할 수 없기 때문이겠죠.)로부터 해당 영역을 뺄 것이며 몇 브라우저는 빼지 않을 것입니다.`clientWidth`프로퍼티는 항상 같을 것입니다: 스크롤바 사이즈는 영역이 있으면 제외됩니다. |
6 changes: 3 additions & 3 deletions2-ui/1-document/09-size-and-scroll/6-width-vs-clientwidth/task.md
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
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.