chore: update translations (#41737)

This commit is contained in:
camperbot
2021-04-06 00:04:04 +09:00
committed by GitHub
parent 0442f975d6
commit d7bc7a945b
55 changed files with 309 additions and 220 deletions

View File

@@ -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));

View File

@@ -24,7 +24,14 @@ dashedName: create-a-set-of-radio-buttons
</label>
```
最佳实践是在 `label` 元素上设置 `for` 属性,让其值与相关联的 `input` 单选按钮的 `id` 属性值相同。 这使得辅助技术能够在标签和子项 `input` 元素之间建立关联关系。 例如:
最佳实践是在 `label` 元素上设置 `for` 属性,让其值与相关联的 `input` 单选按钮的 `id` 属性值相同。 这使得辅助技术能够在标签和相关的 `input` 元素之间建立关联关系。 例如:
```html
<input id="indoor" type="radio" name="indoor-outdoor">
<label for="indoor">Indoor</label>
```
我们也可以在 `label` 标签中嵌入 `input` 元素:
```html
<label for="indoor">
@@ -86,7 +93,7 @@ assert(
);
```
所有的单选按钮都应该包含在 `form` 表单中。
所有的单选按钮都应该包含在 `form` 标签中。
```js
assert($('label').parent().get(0).tagName.match('FORM'));