chore(i18n,curriculum): update translations (#43633)

This commit is contained in:
camperbot
2021-09-30 07:29:50 -07:00
committed by GitHub
parent ababb4bc0b
commit b38ddc0fd6
18 changed files with 180 additions and 128 deletions

View File

@ -11,9 +11,9 @@ dashedName: use-hex-code-for-specific-colors
你知道在 CSS 里面还有其他方式来代表颜色吗? 其中一个方法叫十六进制编码,简称 hex。
日常生活中,我们使用的计数方法一般是 <dfn>decimals</dfn>,或十进制,即使用数字 0 到 9 来表示。 而 <dfn>Hexadecimals</dfn>(或 <dfn>hex</dfn>)基于 16 位数字, 它包括 16 种不同字符。 像十进制一样0-9 的符号代表 0 到 9 的值。 然后A、B、C、D、E、F 代表 10 至 15 的值。 总的来说0 到 F 在十六进制里代表数字,总共有 16 个值。 你可以在这里访问更多[关于十六进制的信息](https://en.wikipedia.org/wiki/Hexadecimal)
日常生活中,我们使用的计数方法一般是 <dfn>decimals</dfn>,或十进制,即使用数字 0 到 9 来表示。 而 <dfn>Hexadecimals</dfn>(或 <dfn>hex</dfn>)基于 16 位数字, 它包括 16 种不同字符。 像十进制一样0-9 的符号代表 0 到 9 的值。 然后A、B、C、D、E、F 代表 10 至 15 的值。 总的来说0 到 F 在十六进制里代表数字,总共有 16 个值。 你可以在[此处](https://www.freecodecamp.org/news/hexadecimal-number-system/)找到更多关于十六进制信息
在 CSS 里面,我们可以使用 6 个十六进制的数字来代表颜色每两个数字控制一种颜色分别是红R、绿G、蓝B。 例如,`#000000` 代表黑色,同时也是最小的值。 你可以在 [RGB color system here](https://en.wikipedia.org/wiki/RGB_color_model) 找到更多的相关信息。
在 CSS 里面,我们可以使用 6 个十六进制的数字来代表颜色每两个数字控制一种颜色分别是红R、绿G、蓝B。 例如,`#000000` 代表黑色,同时也是最小的值。 你可以在[此处](https://www.freecodecamp.org/news/rgb-color-html-and-css-guide/#whatisthergbcolormodel)找到更多关于 RGB 颜色系统的信息。
```css
body {

View File

@ -37,7 +37,7 @@ dashedName: add-images-to-your-website
`main` 元素里,给 `p` 元素前面插入一个 `img` 元素。
现在设置 `src` 属性,使指向网址 `https://www.bit.ly/fcc-relaxing-cat`
现在设置 `src` 属性,使指向 url `https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg`
最后,不要忘记给 `img` 加上 `alt` 属性。
@ -52,7 +52,7 @@ assert($('img').length);
你的图片应该有一个 `src` 属性,其值为猫咪图片的 url。
```js
assert(/^https:\/\/(www\.)?bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src')));
assert(/^https:\/\/cdn\.freecodecamp\.org\/curriculum\/cat-photo-app\/relaxing-cat\.jpg$/i.test($('img').attr('src')));
```
你的图片元素的 `alt` 属性值不应为空。
@ -86,7 +86,7 @@ assert(
```html
<h2>CatPhotoApp</h2>
<main>
<a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>