From d7bc7a945b8105a6cc3614844763356e5e4fcfb0 Mon Sep 17 00:00:00 2001 From: camperbot Date: Tue, 6 Apr 2021 00:04:04 +0900 Subject: [PATCH] chore: update translations (#41737) --- .../use-rgb-values-to-color-elements.md | 4 +-- .../create-a-set-of-radio-buttons.md | 11 +++++-- ...d-new-properties-to-a-javascript-object.md | 16 ++++++---- .../assignment-with-a-returned-value.md | 8 +++-- ...ound-assignment-with-augmented-addition.md | 10 +++--- ...ound-assignment-with-augmented-division.md | 10 ++++-- ...ssignment-with-augmented-multiplication.md | 12 ++++--- ...d-assignment-with-augmented-subtraction.md | 12 ++++--- .../count-backwards-with-a-for-loop.md | 2 +- .../basic-javascript/counting-cards.md | 4 +-- .../declare-string-variables.md | 12 ++++--- .../decrement-a-number-with-javascript.md | 22 +++++++------ ...ete-properties-from-a-javascript-object.md | 4 ++- .../escaping-literal-quotes-in-strings.md | 16 +++++++--- ...te-random-whole-numbers-with-javascript.md | 10 +++--- ...ate-random-whole-numbers-within-a-range.md | 8 +++-- .../increment-a-number-with-javascript.md | 20 +++++++----- ...-variables-with-the-assignment-operator.md | 10 +++--- .../basic-javascript/shopping-list.md | 14 ++++---- ...in-one-variable-using-javascript-arrays.md | 6 ++-- ...ing-values-with-the-assignment-operator.md | 10 +++--- .../use-the-parseint-function-with-a-radix.md | 24 ++++++++------ .../use-the-parseint-function.md | 18 ++++++----- ...onsole-to-check-the-value-of-a-variable.md | 6 ++-- .../learn-about-functional-programming.md | 10 +++--- ...er-method-to-extract-data-from-an-array.md | 4 +-- ...ap-method-to-extract-data-from-an-array.md | 4 +-- .../use-the-reduce-method-to-analyze-data.md | 4 +-- .../arguments-optional.md | 8 +++-- .../iterate-over-all-properties.md | 6 ++-- ...ode-more-reusable-with-the-this-keyword.md | 12 ++++--- .../understand-own-properties.md | 4 +-- .../moving-forward-from-here.md | 8 ++--- .../add-classes-with-d3.md | 10 +++--- .../add-document-elements-with-d3.md | 12 ++++--- .../add-inline-styling-to-elements.md | 6 ++-- .../create-a-linear-scale-with-d3.md | 8 +++-- .../select-a-group-of-elements-with-d3.md | 6 ++-- ...te-the-height-of-an-element-dynamically.md | 6 ++-- .../work-with-dynamic-data-in-d3.md | 6 ++-- .../change-text-with-click-events.md | 4 ++- .../render-images-from-data-sources.md | 6 ++-- .../set-up-the-environment.md | 2 +- .../manipulating-complex-objects.md | 2 +- ...er-method-to-extract-data-from-an-array.md | 4 +-- ...ap-method-to-extract-data-from-an-array.md | 4 +-- .../use-the-reduce-method-to-analyze-data.md | 4 +-- ...xtend-constructors-to-receive-arguments.md | 2 +- ...dd-elements-within-your-bootstrap-wells.md | 12 +++---- ...ont-awesome-icons-to-all-of-our-buttons.md | 14 ++++---- ...add-id-attributes-to-bootstrap-elements.md | 20 ++++++------ ...pply-the-default-bootstrap-button-style.md | 10 +++--- ...call-out-optional-actions-with-btn-info.md | 16 +++++----- .../bootstrap/center-text-with-bootstrap.md | 14 ++++---- ...create-a-block-element-bootstrap-button.md | 32 +++++++++++-------- 55 files changed, 309 insertions(+), 220 deletions(-) diff --git a/curriculum/challenges/chinese/01-responsive-web-design/basic-css/use-rgb-values-to-color-elements.md b/curriculum/challenges/chinese/01-responsive-web-design/basic-css/use-rgb-values-to-color-elements.md index c92d3b44ca..4b075605bb 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/basic-css/use-rgb-values-to-color-elements.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/basic-css/use-rgb-values-to-color-elements.md @@ -27,7 +27,7 @@ RGB 值与我们之前学到的十六进制编码不同。`RGB` 值不需要用 如果我们稍微计算一下,就不难发现这两种表示方式本质上是等价的。在十六进制编码中,我们用两个十六进制数表示一个颜色;这样,每种颜色都有 16 \* 16(即 256)种可能。 所以,`RGB` 从零开始计算,与十六进制代码的值的数量完全相同。 -下面是通过使用 RGB 值设置背景颜色为橘色的例子: +下面是通过使用 RGB 值设置背景颜色为橘色的例子:`body`。 ```css body { @@ -47,7 +47,7 @@ body { assert($('body').css('background-color') === 'rgb(0, 0, 0)'); ``` -`body` 元素的背景颜色的属性值应使用 `rgb` 值。 +您应该使用 `rgb` 给您的 `body` 元素黑色背景。 ```js assert(code.match(/rgb\s*\(\s*0\s*,\s*0\s*,\s*0\s*\)/gi)); diff --git a/curriculum/challenges/chinese/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md b/curriculum/challenges/chinese/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md index 2a9e918c9e..7141a14b73 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.md @@ -24,7 +24,14 @@ dashedName: create-a-set-of-radio-buttons ``` -最佳实践是在 `label` 元素上设置 `for` 属性,让其值与相关联的 `input` 单选按钮的 `id` 属性值相同。 这使得辅助技术能够在标签和子项 `input` 元素之间建立关联关系。 例如: +最佳实践是在 `label` 元素上设置 `for` 属性,让其值与相关联的 `input` 单选按钮的 `id` 属性值相同。 这使得辅助技术能够在标签和相关的 `input` 元素之间建立关联关系。 例如: + +```html + + +``` + +我们也可以在 `label` 标签中嵌入 `input` 元素: ```html